#CDB242#CDB242
#CDB242 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.7% C 0.132 H 95.4°. Best body text is #000000 at 10.04:1 contrast (WCAG AA passes).
Color values
| HEX | #CDB242 |
|---|---|
| RGB | rgb(205, 178, 66) |
| HSL | hsl(48, 58%, 53%) |
| HSV | hsv(48, 68%, 80%) |
| CMYK | cmyk(0%, 13.2%, 67.8%, 19.6%) |
| CIE-LAB | lab(73.03, -2.68, 58.52) |
| CIE-LCH | lch(73.03, 58.58, 92.62°) |
| OKLab | oklab(76.67% -0.0125 0.1316) |
| OKLCH | oklch(76.67% 0.132 95.4) |
| XYZ | xyz(42.0826, 45.2155, 11.6641) |
| Luminance | 0.4521 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.91
Brownish Yellow
#C9B003
ΔE00 4.09
Mustard (survey)
#CEB301
ΔE00 4.21
Dark Yellow
#D5B60A
ΔE00 4.39
Muddy Yellow
#BFAC05
ΔE00 4.79
Gold (survey)
#DBB40C
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDB242 #425DCD
analogous
#CD6C42 #CDB242 #A3CD42
triadic
#CDB242 #42CDB2 #B242CD
tetradic
#CDB242 #42CD6C #425DCD #CD42A3
square
#CDB242 #42CD6C #425DCD #CD42A3
split-complementary
#CDB242 #42A3CD #6C42CD
monochromatic
#76651F #A68E2C #CDB242 #DAC672 #E7D9A3
Accessibility & contrast
On white
2.09
#CDB242 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.04
#CDB242 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDB242
10.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDB242 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDB242 | 1.00 | 2.09 | 10.04 | 10.04 |
| #FFFFFF | 2.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AE33
Deuteranopia (green-blind)
#CBB748
Tritanopia (blue-blind)
#DDA59B
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #cdb242; /* rgb */ color: rgb(205, 178, 66); /* oklch */ color: oklch(76.7% 0.132 95.4);
Tailwind
colors: {
custom: {
50: '#e0c87c',
500: '#cdb242',
950: '#000000',
},
}SCSS
$custom: #cdb242; $custom-light: #e0c87c; $custom-dark: #000000;
JSON
{
"hex": "#cdb242",
"rgb": {
"r": 205,
"g": 178,
"b": 66
},
"hsl": {
"h": 48.345,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.76667,
"c": 0.13221,
"h": 95.4
},
"luminance": 0.45213
}Semantic roles & 50–950 ramp
primary
#CDB242
secondary
#97A3D3
accent
#65E146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C