#CDC371#CDC371
#CDC371 is a light, moderate yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.104 H 102.3°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC371 |
|---|---|
| RGB | rgb(205, 195, 113) |
| HSL | hsl(53, 48%, 62%) |
| HSV | hsv(53, 45%, 80%) |
| CMYK | cmyk(0%, 4.9%, 44.9%, 19.6%) |
| CIE-LAB | lab(77.99, -7.88, 42.30) |
| CIE-LCH | lch(77.99, 43.03, 100.55°) |
| OKLab | oklab(80.76% -0.0222 0.1019) |
| OKLCH | oklch(80.76% 0.104 102.3) |
| XYZ | xyz(47.6737, 53.2030, 23.3775) |
| Luminance | 0.5320 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.63
Sand (survey)
#E2CA76
ΔE00 4.71
Greenish Beige
#C9D179
ΔE00 5.55
Greenish Tan
#BCCB7A
ΔE00 6.87
Sandy
#F1DA7A
ΔE00 7.24
Sand
#C2B280
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC371 #717BCD
analogous
#CD9571 #CDC371 #A9CD71
triadic
#CDC371 #71CDC3 #C371CD
tetradic
#CDC371 #71CD95 #717BCD #CD71A9
square
#CDC371 #71CD95 #717BCD #CD71A9
split-complementary
#CDC371 #71A9CD #9571CD
monochromatic
#918633 #BDB044 #CDC371 #DDD69E #EDE9CC
Accessibility & contrast
On white
1.80
#CDC371 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.64
#CDC371 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC371
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC371 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC371 | 1.00 | 1.80 | 11.64 | 11.64 |
| #FFFFFF | 1.80 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0BE6A
Deuteranopia (green-blind)
#D4C374
Tritanopia (blue-blind)
#D9B9AF
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #cdc371; /* rgb */ color: rgb(205, 195, 113); /* oklch */ color: oklch(80.8% 0.104 102.3);
Tailwind
colors: {
custom: {
50: '#ded59b',
500: '#cdc371',
950: '#000000',
},
}SCSS
$custom: #cdc371; $custom-light: #ded59b; $custom-dark: #000000;
JSON
{
"hex": "#cdc371",
"rgb": {
"r": 205,
"g": 195,
"b": 113
},
"hsl": {
"h": 53.478,
"s": 47.917,
"l": 62.353
},
"oklch": {
"l": 0.80757,
"c": 0.10426,
"h": 102.3
},
"luminance": 0.53202
}Semantic roles & 50–950 ramp
primary
#CDC371
secondary
#4B5397
accent
#3ABB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F