#CCAB2D#CCAB2D
#CCAB2D is a light, vivid yellow. Relative luminance 0.422; OKLCH L 75.0% C 0.140 H 93.4°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #CCAB2D |
|---|---|
| RGB | rgb(204, 171, 45) |
| HSL | hsl(48, 64%, 49%) |
| HSV | hsv(48, 78%, 80%) |
| CMYK | cmyk(0%, 16.2%, 77.9%, 20%) |
| CIE-LAB | lab(70.98, -0.39, 64.43) |
| CIE-LCH | lch(70.98, 64.44, 90.35°) |
| OKLab | oklab(74.98% -0.0082 0.1403) |
| OKLCH | oklch(74.98% 0.14 93.4) |
| XYZ | xyz(39.9407, 42.1550, 8.5151) |
| Luminance | 0.4215 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Burnt Yellow
#D5AB09
ΔE00 2.95
Mustard
#DBB42C
ΔE00 3.20
Brownish Yellow
#C9B003
ΔE00 3.62
Mustard (survey)
#CEB301
ΔE00 3.86
Gold (survey)
#DBB40C
ΔE00 3.90
Dark Yellow
#D5B60A
ΔE00 4.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CCAB2D #2D4ECC
analogous
#CC5C2D #CCAB2D #9ECC2D
triadic
#CCAB2D #2DCCAB #AB2DCC
tetradic
#CCAB2D #2DCC5C #2D4ECC #CC2D9E
square
#CCAB2D #2DCC5C #2D4ECC #CC2D9E
split-complementary
#CCAB2D #2D9ECC #5C2DCC
monochromatic
#685717 #9A8122 #CCAB2D #DBC05B #E6D48D
Accessibility & contrast
On white
2.23
#CCAB2D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.43
#CCAB2D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CCAB2D
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CCAB2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CCAB2D | 1.00 | 2.23 | 9.43 | 9.43 |
| #FFFFFF | 2.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA811
Deuteranopia (green-blind)
#C6B235
Tritanopia (blue-blind)
#DD9D93
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #ccab2d; /* rgb */ color: rgb(204, 171, 45); /* oklch */ color: oklch(75.0% 0.140 93.4);
Tailwind
colors: {
custom: {
50: '#e0c370',
500: '#ccab2d',
950: '#000000',
},
}SCSS
$custom: #ccab2d; $custom-light: #e0c370; $custom-dark: #000000;
JSON
{
"hex": "#ccab2d",
"rgb": {
"r": 204,
"g": 171,
"b": 45
},
"hsl": {
"h": 47.547,
"s": 63.855,
"l": 48.824
},
"oklch": {
"l": 0.74976,
"c": 0.14049,
"h": 93.4
},
"luminance": 0.42153
}Semantic roles & 50–950 ramp
primary
#CCAB2D
secondary
#8594D0
accent
#63E741
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161208
muted
#84817B