#CCAC42#CCAC42
#CCAC42 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 75.3% C 0.128 H 92.1°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).
Color values
| HEX | #CCAC42 |
|---|---|
| RGB | rgb(204, 172, 66) |
| HSL | hsl(46, 58%, 53%) |
| HSV | hsv(46, 68%, 80%) |
| CMYK | cmyk(0%, 15.7%, 67.6%, 20%) |
| CIE-LAB | lab(71.38, 0.06, 56.77) |
| CIE-LCH | lch(71.38, 56.77, 89.94°) |
| OKLab | oklab(75.34% -0.0046 0.1279) |
| OKLCH | oklch(75.34% 0.128 92.1) |
| XYZ | xyz(40.6398, 42.7381, 11.2619) |
| Luminance | 0.4274 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 4.08
Desert
#CCAD60
ΔE00 4.32
Burnt Yellow
#D5AB09
ΔE00 4.53
Brownish Yellow
#C9B003
ΔE00 5.24
Gold (survey)
#DBB40C
ΔE00 5.34
Mustard (survey)
#CEB301
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CCAC42 #4262CC
analogous
#CC6742 #CCAC42 #A7CC42
triadic
#CCAC42 #42CCAC #AC42CC
tetradic
#CCAC42 #42CC67 #4262CC #CC42A7
square
#CCAC42 #42CC67 #4262CC #CC42A7
split-complementary
#CCAC42 #42A7CC #6742CC
monochromatic
#74611F #A4892C #CCAC42 #D9C172 #E6D6A2
Accessibility & contrast
On white
2.20
#CCAC42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.55
#CCAC42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CCAC42
9.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CCAC42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CCAC42 | 1.00 | 2.20 | 9.55 | 9.55 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA935
Deuteranopia (green-blind)
#C6B347
Tritanopia (blue-blind)
#DC9F96
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #ccac42; /* rgb */ color: rgb(204, 172, 66); /* oklch */ color: oklch(75.3% 0.128 92.1);
Tailwind
colors: {
custom: {
50: '#dfc47c',
500: '#ccac42',
950: '#000000',
},
}SCSS
$custom: #ccac42; $custom-light: #dfc47c; $custom-dark: #000000;
JSON
{
"hex": "#ccac42",
"rgb": {
"r": 204,
"g": 172,
"b": 66
},
"hsl": {
"h": 46.087,
"s": 57.5,
"l": 52.941
},
"oklch": {
"l": 0.75336,
"c": 0.12802,
"h": 92.1
},
"luminance": 0.42736
}Semantic roles & 50–950 ramp
primary
#CCAC42
secondary
#97A5D3
accent
#6BE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16120A
muted
#84817C