#CCB902

#ccb902 ≈ Old Gold

  • yellow
  • Lightness: medium
  • Saturation: vivid
  • Warm

#ccb902 is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 80% red, 72.55% green and 0.78% blue; printed in CMYK it uses 0% cyan, 9.31% magenta, 99.02% yellow and 20% black. Its hue angle is 54.36°, with 98.06% saturation and 40.39% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and call-to-action buttons. Black text on this color reaches a contrast ratio of 10.51:1 (WCAG AAA). The closest named color is Old Gold (#cfb53b), ΔE 4.05.

Description generated from the measured properties of this color.

Conversions of #ccb902 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#cccc00
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.4754

Readable text 2:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 10.51:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #b7b7b7 ≈ 0.003% of males
Achromatomaly #c0b892 ≈ 0.001% of males
Protanopia #ccb300 ≈ 1.01% of males
Deuteranopia #d1bb20 ≈ 1.27% of males
Tritanopia #ddaa9d ≈ 0.0001% of males
Protanomaly #ccb500 ≈ 1.08% of males
Deuteranomaly #cfba17 ≈ 4.63% of males
Tritanomaly #d6b07d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ccb902 {
  color: #ccb902;
}
Background
.bg-ccb902 {
  background-color: #ccb902;
  color: #000000;
}
Border
.border-ccb902 {
  border: 2px solid #ccb902;
}
CSS variables
:root {
  --color-primary: #ccb902;
  --color-primary-rgb: 204 185 2;
  --color-primary-hsl: 54 98% 40%;
}
Gradient
.gradient-ccb902 {
  background: linear-gradient(135deg, #ccb902, #7acc02);
}
Colored shadow
.shadow-ccb902 {
  box-shadow: 0 8px 24px rgb(204 185 2 / 0.35);
}

Old Gold
#ccb902  rgb(204, 185, 2)  hsl(54, 98%, 40%)  Old Gold
#0215cc  rgb(2, 21, 204)  hsl(234, 98%, 40%)  Medium Blue
#02ccb9  rgb(2, 204, 185)  hsl(174, 98%, 40%)  Turquoise
#b902cc  rgb(185, 2, 204)  hsl(294, 98%, 40%)  Dark Orchid