#CDAF2D#CDAF2D
#CDAF2D is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.9% C 0.143 H 95.2°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).
Color values
| HEX | #CDAF2D |
|---|---|
| RGB | rgb(205, 175, 45) |
| HSL | hsl(49, 64%, 49%) |
| HSV | hsv(49, 78%, 80%) |
| CMYK | cmyk(0%, 14.6%, 78%, 19.6%) |
| CIE-LAB | lab(72.12, -2.07, 65.51) |
| CIE-LCH | lch(72.12, 65.54, 91.81°) |
| OKLab | oklab(75.9% -0.013 0.1425) |
| OKLCH | oklch(75.9% 0.143 95.2) |
| XYZ | xyz(40.9827, 43.8309, 8.7837) |
| Luminance | 0.4383 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brownish Yellow
#C9B003
ΔE00 2.62
Mustard (survey)
#CEB301
ΔE00 2.76
Mustard
#DBB42C
ΔE00 3.00
Dark Yellow
#D5B60A
ΔE00 3.04
Gold (survey)
#DBB40C
ΔE00 3.51
Burnt Yellow
#D5AB09
ΔE00 3.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDAF2D #2D4BCD
analogous
#CD5F2D #CDAF2D #9BCD2D
triadic
#CDAF2D #2DCDAF #AF2DCD
tetradic
#CDAF2D #2DCD5F #2D4BCD #CD2D9B
square
#CDAF2D #2DCD5F #2D4BCD #CD2D9B
split-complementary
#CDAF2D #2D9BCD #5F2DCD
monochromatic
#695917 #9B8422 #CDAF2D #DBC35C #E6D68E
Accessibility & contrast
On white
2.15
#CDAF2D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.77
#CDAF2D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDAF2D
9.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDAF2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDAF2D | 1.00 | 2.15 | 9.77 | 9.77 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AB0F
Deuteranopia (green-blind)
#C9B536
Tritanopia (blue-blind)
#DEA197
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #cdaf2d; /* rgb */ color: rgb(205, 175, 45); /* oklch */ color: oklch(75.9% 0.143 95.2);
Tailwind
colors: {
custom: {
50: '#e1c671',
500: '#cdaf2d',
950: '#000000',
},
}SCSS
$custom: #cdaf2d; $custom-light: #e1c671; $custom-dark: #000000;
JSON
{
"hex": "#cdaf2d",
"rgb": {
"r": 205,
"g": 175,
"b": 45
},
"hsl": {
"h": 48.75,
"s": 64,
"l": 49.02
},
"oklch": {
"l": 0.75898,
"c": 0.14309,
"h": 95.2
},
"luminance": 0.43829
}Semantic roles & 50–950 ramp
primary
#CDAF2D
secondary
#8593D1
accent
#60E741
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161208
muted
#84817B