#CDC271#CDC271
#CDC271 is a light, moderate yellow. Relative luminance 0.528; OKLCH L 80.5% C 0.103 H 101.6°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC271 |
|---|---|
| RGB | rgb(205, 194, 113) |
| HSL | hsl(53, 48%, 62%) |
| HSV | hsv(53, 45%, 80%) |
| CMYK | cmyk(0%, 5.4%, 44.9%, 19.6%) |
| CIE-LAB | lab(77.73, -7.37, 41.97) |
| CIE-LCH | lch(77.73, 42.61, 99.95°) |
| OKLab | oklab(80.55% -0.0208 0.1011) |
| OKLCH | oklch(80.55% 0.103 101.6) |
| XYZ | xyz(47.4504, 52.7564, 23.3031) |
| Luminance | 0.5275 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.52
Sand (survey)
#E2CA76
ΔE00 4.58
Greenish Beige
#C9D179
ΔE00 5.91
Greenish Tan
#BCCB7A
ΔE00 7.17
Sandy
#F1DA7A
ΔE00 7.31
Sand
#C2B280
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC271 #717CCD
analogous
#CD9471 #CDC271 #AACD71
triadic
#CDC271 #71CDC2 #C271CD
tetradic
#CDC271 #71CD94 #717CCD #CD71AA
square
#CDC271 #71CD94 #717CCD #CD71AA
split-complementary
#CDC271 #71AACD #9471CD
monochromatic
#918533 #BDAF44 #CDC271 #DDD59E #EDE9CC
Accessibility & contrast
On white
1.82
#CDC271 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.55
#CDC271 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC271
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC271 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC271 | 1.00 | 1.82 | 11.55 | 11.55 |
| #FFFFFF | 1.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFBD6A
Deuteranopia (green-blind)
#D3C274
Tritanopia (blue-blind)
#D9B8AF
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #cdc271; /* rgb */ color: rgb(205, 194, 113); /* oklch */ color: oklch(80.5% 0.103 101.6);
Tailwind
colors: {
custom: {
50: '#ded49b',
500: '#cdc271',
950: '#000000',
},
}SCSS
$custom: #cdc271; $custom-light: #ded49b; $custom-dark: #000000;
JSON
{
"hex": "#cdc271",
"rgb": {
"r": 205,
"g": 194,
"b": 113
},
"hsl": {
"h": 52.826,
"s": 47.917,
"l": 62.353
},
"oklch": {
"l": 0.80547,
"c": 0.10323,
"h": 101.6
},
"luminance": 0.52755
}Semantic roles & 50–950 ramp
primary
#CDC271
secondary
#4B5497
accent
#3CBB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F