#CCB042#CCB042
#CCB042 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 76.2% C 0.131 H 94.7°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).
Color values
| HEX | #CCB042 |
|---|---|
| RGB | rgb(204, 176, 66) |
| HSL | hsl(48, 58%, 53%) |
| HSV | hsv(48, 68%, 80%) |
| CMYK | cmyk(0%, 13.7%, 67.6%, 20%) |
| CIE-LAB | lab(72.42, -2.06, 57.85) |
| CIE-LCH | lch(72.42, 57.89, 92.04°) |
| OKLab | oklab(76.16% -0.0107 0.1302) |
| OKLCH | oklch(76.16% 0.131 94.7) |
| XYZ | xyz(41.4126, 44.2836, 11.5195) |
| Luminance | 0.4428 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.97
Brownish Yellow
#C9B003
ΔE00 4.32
Mustard (survey)
#CEB301
ΔE00 4.51
Dark Yellow
#D5B60A
ΔE00 4.70
Muddy Yellow
#BFAC05
ΔE00 4.94
Burnt Yellow
#D5AB09
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CCB042 #425ECC
analogous
#CC6B42 #CCB042 #A3CC42
triadic
#CCB042 #42CCB0 #B042CC
tetradic
#CCB042 #42CC6B #425ECC #CC42A3
square
#CCB042 #42CC6B #425ECC #CC42A3
split-complementary
#CCB042 #42A3CC #6B42CC
monochromatic
#74631F #A48C2C #CCB042 #D9C472 #E6D8A2
Accessibility & contrast
On white
2.13
#CCB042 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.86
#CCB042 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CCB042
9.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CCB042 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CCB042 | 1.00 | 2.13 | 9.86 | 9.86 |
| #FFFFFF | 2.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AD34
Deuteranopia (green-blind)
#C9B548
Tritanopia (blue-blind)
#DCA399
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #ccb042; /* rgb */ color: rgb(204, 176, 66); /* oklch */ color: oklch(76.2% 0.131 94.7);
Tailwind
colors: {
custom: {
50: '#dfc77c',
500: '#ccb042',
950: '#000000',
},
}SCSS
$custom: #ccb042; $custom-light: #dfc77c; $custom-dark: #000000;
JSON
{
"hex": "#ccb042",
"rgb": {
"r": 204,
"g": 176,
"b": 66
},
"hsl": {
"h": 47.826,
"s": 57.5,
"l": 52.941
},
"oklch": {
"l": 0.76158,
"c": 0.13067,
"h": 94.7
},
"luminance": 0.44281
}Semantic roles & 50–950 ramp
primary
#CCB042
secondary
#97A3D3
accent
#66E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C