#CCAB3E#CCAB3E
#CCAB3E is a light, vivid yellow. Relative luminance 0.423; OKLCH L 75.1% C 0.130 H 91.8°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).
Color values
| HEX | #CCAB3E |
|---|---|
| RGB | rgb(204, 171, 62) |
| HSL | hsl(46, 58%, 52%) |
| HSV | hsv(46, 70%, 80%) |
| CMYK | cmyk(0%, 16.2%, 69.6%, 20%) |
| CIE-LAB | lab(71.09, 0.37, 58.15) |
| CIE-LCH | lch(71.09, 58.15, 89.64°) |
| OKLab | oklab(75.1% -0.0042 0.1302) |
| OKLCH | oklch(75.1% 0.13 91.8) |
| XYZ | xyz(40.3364, 42.3133, 10.5992) |
| Luminance | 0.4231 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.91
Burnt Yellow
#D5AB09
ΔE00 4.13
Desert
#CCAD60
ΔE00 4.66
Brownish Yellow
#C9B003
ΔE00 5.09
Gold (survey)
#DBB40C
ΔE00 5.10
Ocher
#BF9B0C
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CCAB3E #3E5FCC
analogous
#CC643E #CCAB3E #A6CC3E
triadic
#CCAB3E #3ECCAB #AB3ECC
tetradic
#CCAB3E #3ECC64 #3E5FCC #CC3EA6
square
#CCAB3E #3ECC64 #3E5FCC #CC3EA6
split-complementary
#CCAB3E #3EA6CC #643ECC
monochromatic
#725E1E #A2862B #CCAB3E #D9C06E #E6D59F
Accessibility & contrast
On white
2.22
#CCAB3E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.46
#CCAB3E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CCAB3E
9.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CCAB3E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CCAB3E | 1.00 | 2.22 | 9.46 | 9.46 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.46 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.46 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA82F
Deuteranopia (green-blind)
#C5B244
Tritanopia (blue-blind)
#DC9D95
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #ccab3e; /* rgb */ color: rgb(204, 171, 62); /* oklch */ color: oklch(75.1% 0.130 91.8);
Tailwind
colors: {
custom: {
50: '#dfc379',
500: '#ccab3e',
950: '#000000',
},
}SCSS
$custom: #ccab3e; $custom-light: #dfc379; $custom-dark: #000000;
JSON
{
"hex": "#ccab3e",
"rgb": {
"r": 204,
"g": 171,
"b": 62
},
"hsl": {
"h": 46.056,
"s": 58.197,
"l": 52.157
},
"oklch": {
"l": 0.75097,
"c": 0.13024,
"h": 91.8
},
"luminance": 0.42311
}Semantic roles & 50–950 ramp
primary
#CCAB3E
secondary
#94A2D2
accent
#6AE146
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#161209
muted
#84817B