#CDC162#CDC162
#CDC162 is a light, moderate yellow. Relative luminance 0.520; OKLCH L 80.1% C 0.118 H 102.2°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC162 |
|---|---|
| RGB | rgb(205, 193, 98) |
| HSL | hsl(53, 52%, 59%) |
| HSV | hsv(53, 52%, 80%) |
| CMYK | cmyk(0%, 5.9%, 52.2%, 19.6%) |
| CIE-LAB | lab(77.28, -8.23, 48.79) |
| CIE-LCH | lch(77.28, 49.48, 99.58°) |
| OKLab | oklab(80.13% -0.0248 0.115) |
| OKLCH | oklch(80.13% 0.118 102.2) |
| XYZ | xyz(46.4528, 52.0025, 19.1435) |
| Luminance | 0.5200 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.46
Sand (survey)
#E2CA76
ΔE00 4.92
Greenish Beige
#C9D179
ΔE00 6.51
Sandy
#F1DA7A
ΔE00 7.18
Puke Yellow
#C2BE0E
ΔE00 7.28
Olive Yellow
#C2B709
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC162 #626ECD
analogous
#CD8C62 #CDC162 #A4CD62
triadic
#CDC162 #62CDC1 #C162CD
tetradic
#CDC162 #62CD8C #626ECD #CD62A4
square
#CDC162 #62CD8C #626ECD #CD62A4
split-complementary
#CDC162 #62A4CD #8C62CD
monochromatic
#897F2C #B7A93A #CDC162 #DCD390 #EBE6BF
Accessibility & contrast
On white
1.84
#CDC162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.40
#CDC162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC162
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC162 | 1.00 | 1.84 | 11.40 | 11.40 |
| #FFFFFF | 1.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0BC59
Deuteranopia (green-blind)
#D4C166
Tritanopia (blue-blind)
#DAB6AB
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cdc162; /* rgb */ color: rgb(205, 193, 98); /* oklch */ color: oklch(80.1% 0.118 102.2);
Tailwind
colors: {
custom: {
50: '#ded391',
500: '#cdc162',
950: '#000000',
},
}SCSS
$custom: #cdc162; $custom-light: #ded391; $custom-dark: #000000;
JSON
{
"hex": "#cdc162",
"rgb": {
"r": 205,
"g": 193,
"b": 98
},
"hsl": {
"h": 53.271,
"s": 51.691,
"l": 59.412
},
"oklch": {
"l": 0.80132,
"c": 0.11761,
"h": 102.2
},
"luminance": 0.52001
}Semantic roles & 50–950 ramp
primary
#CDC162
secondary
#434C90
accent
#5DDB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F