#CDC262#CDC262
#CDC262 is a light, moderate yellow. Relative luminance 0.524; OKLCH L 80.3% C 0.119 H 102.8°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC262 |
|---|---|
| RGB | rgb(205, 194, 98) |
| HSL | hsl(54, 52%, 59%) |
| HSV | hsv(54, 52%, 80%) |
| CMYK | cmyk(0%, 5.4%, 52.2%, 19.6%) |
| CIE-LAB | lab(77.55, -8.75, 49.10) |
| CIE-LCH | lch(77.55, 49.87, 100.10°) |
| OKLab | oklab(80.34% -0.0262 0.1156) |
| OKLCH | oklch(80.34% 0.119 102.8) |
| XYZ | xyz(46.6746, 52.4461, 19.2174) |
| Luminance | 0.5244 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.58
Sand (survey)
#E2CA76
ΔE00 5.07
Greenish Beige
#C9D179
ΔE00 6.22
Sandy
#F1DA7A
ΔE00 7.12
Puke Yellow
#C2BE0E
ΔE00 7.16
Vomit Yellow
#C7C10C
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC262 #626DCD
analogous
#CD8D62 #CDC262 #A3CD62
triadic
#CDC262 #62CDC2 #C262CD
tetradic
#CDC262 #62CD8D #626DCD #CD62A3
square
#CDC262 #62CD8D #626DCD #CD62A3
split-complementary
#CDC262 #62A3CD #8D62CD
monochromatic
#897F2C #B7AB3A #CDC262 #DCD490 #EBE6BF
Accessibility & contrast
On white
1.83
#CDC262 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.49
#CDC262 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC262
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC262 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC262 | 1.00 | 1.83 | 11.49 | 11.49 |
| #FFFFFF | 1.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BD59
Deuteranopia (green-blind)
#D4C267
Tritanopia (blue-blind)
#DAB7AC
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #cdc262; /* rgb */ color: rgb(205, 194, 98); /* oklch */ color: oklch(80.3% 0.119 102.8);
Tailwind
colors: {
custom: {
50: '#ded491',
500: '#cdc262',
950: '#000000',
},
}SCSS
$custom: #cdc262; $custom-light: #ded491; $custom-dark: #000000;
JSON
{
"hex": "#cdc262",
"rgb": {
"r": 205,
"g": 194,
"b": 98
},
"hsl": {
"h": 53.832,
"s": 51.691,
"l": 59.412
},
"oklch": {
"l": 0.80342,
"c": 0.11858,
"h": 102.8
},
"luminance": 0.52445
}Semantic roles & 50–950 ramp
primary
#CDC262
secondary
#434B90
accent
#5BDB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F