#CCAB3A#CCAB3A
#CCAB3A is a light, vivid yellow. Relative luminance 0.423; OKLCH L 75.1% C 0.133 H 92.3°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).
Color values
| HEX | #CCAB3A |
|---|---|
| RGB | rgb(204, 171, 58) |
| HSL | hsl(46, 59%, 51%) |
| HSV | hsv(46, 72%, 80%) |
| CMYK | cmyk(0%, 16.2%, 71.6%, 20%) |
| CIE-LAB | lab(71.06, 0.17, 59.74) |
| CIE-LCH | lch(71.06, 59.74, 89.84°) |
| OKLab | oklab(75.06% -0.0052 0.1328) |
| OKLCH | oklch(75.06% 0.133 92.3) |
| XYZ | xyz(40.2306, 42.2710, 10.0423) |
| Luminance | 0.4227 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.67
Burnt Yellow
#D5AB09
ΔE00 3.78
Brownish Yellow
#C9B003
ΔE00 4.69
Gold (survey)
#DBB40C
ΔE00 4.76
Mustard (survey)
#CEB301
ΔE00 4.92
Ocher
#BF9B0C
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CCAB3A #3A5BCC
analogous
#CC623A #CCAB3A #A4CC3A
triadic
#CCAB3A #3ACCAB #AB3ACC
tetradic
#CCAB3A #3ACC62 #3A5BCC #CC3AA4
square
#CCAB3A #3ACC62 #3A5BCC #CC3AA4
split-complementary
#CCAB3A #3AA4CC #623ACC
monochromatic
#6F5C1D #A08529 #CCAB3A #D9C06B #E5D49B
Accessibility & contrast
On white
2.22
#CCAB3A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.45
#CCAB3A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CCAB3A
9.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CCAB3A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CCAB3A | 1.00 | 2.22 | 9.45 | 9.45 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.45 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.45 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA829
Deuteranopia (green-blind)
#C6B240
Tritanopia (blue-blind)
#DC9D94
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #ccab3a; /* rgb */ color: rgb(204, 171, 58); /* oklch */ color: oklch(75.1% 0.133 92.3);
Tailwind
colors: {
custom: {
50: '#e0c377',
500: '#ccab3a',
950: '#000000',
},
}SCSS
$custom: #ccab3a; $custom-light: #e0c377; $custom-dark: #000000;
JSON
{
"hex": "#ccab3a",
"rgb": {
"r": 204,
"g": 171,
"b": 58
},
"hsl": {
"h": 46.438,
"s": 58.871,
"l": 51.373
},
"oklch": {
"l": 0.75064,
"c": 0.13291,
"h": 92.3
},
"luminance": 0.42269
}Semantic roles & 50–950 ramp
primary
#CCAB3A
secondary
#919FD1
accent
#69E246
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B