#CDAF42#CDAF42
#CDAF42 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 76.0% C 0.130 H 93.5°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #CDAF42 |
|---|---|
| RGB | rgb(205, 175, 66) |
| HSL | hsl(47, 58%, 53%) |
| HSV | hsv(47, 68%, 80%) |
| CMYK | cmyk(0%, 14.6%, 67.8%, 19.6%) |
| CIE-LAB | lab(72.25, -1.10, 57.71) |
| CIE-LCH | lch(72.25, 57.72, 91.09°) |
| OKLab | oklab(76.05% -0.008 0.1299) |
| OKLCH | oklch(76.05% 0.13 93.5) |
| XYZ | xyz(41.4923, 44.0347, 11.4673) |
| Luminance | 0.4403 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.74
Brownish Yellow
#C9B003
ΔE00 4.61
Burnt Yellow
#D5AB09
ΔE00 4.64
Mustard (survey)
#CEB301
ΔE00 4.76
Desert
#CCAD60
ΔE00 4.79
Dark Yellow
#D5B60A
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDAF42 #4260CD
analogous
#CD6942 #CDAF42 #A6CD42
triadic
#CDAF42 #42CDAF #AF42CD
tetradic
#CDAF42 #42CD69 #4260CD #CD42A6
square
#CDAF42 #42CD69 #4260CD #CD42A6
split-complementary
#CDAF42 #42A6CD #6942CD
monochromatic
#76631F #A68C2C #CDAF42 #DAC372 #E7D8A3
Accessibility & contrast
On white
2.14
#CDAF42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.81
#CDAF42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDAF42
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDAF42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDAF42 | 1.00 | 2.14 | 9.81 | 9.81 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AC34
Deuteranopia (green-blind)
#C8B548
Tritanopia (blue-blind)
#DDA298
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #cdaf42; /* rgb */ color: rgb(205, 175, 66); /* oklch */ color: oklch(76.0% 0.130 93.5);
Tailwind
colors: {
custom: {
50: '#e0c67c',
500: '#cdaf42',
950: '#000000',
},
}SCSS
$custom: #cdaf42; $custom-light: #e0c67c; $custom-dark: #000000;
JSON
{
"hex": "#cdaf42",
"rgb": {
"r": 205,
"g": 175,
"b": 66
},
"hsl": {
"h": 47.05,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.76049,
"c": 0.13015,
"h": 93.5
},
"luminance": 0.44032
}Semantic roles & 50–950 ramp
primary
#CDAF42
secondary
#97A4D3
accent
#68E146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C