#CDB342#CDB342
#CDB342 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 76.9% C 0.133 H 96.1°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).
Color values
| HEX | #CDB342 |
|---|---|
| RGB | rgb(205, 179, 66) |
| HSL | hsl(49, 58%, 53%) |
| HSV | hsv(49, 68%, 80%) |
| CMYK | cmyk(0%, 12.7%, 67.8%, 19.6%) |
| CIE-LAB | lab(73.29, -3.20, 58.79) |
| CIE-LCH | lch(73.29, 58.88, 93.12°) |
| OKLab | oklab(76.87% -0.014 0.1322) |
| OKLCH | oklch(76.87% 0.133 96.1) |
| XYZ | xyz(42.2823, 45.6148, 11.7306) |
| Luminance | 0.4561 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brownish Yellow
#C9B003
ΔE00 3.99
Mustard
#DBB42C
ΔE00 4.04
Mustard (survey)
#CEB301
ΔE00 4.09
Dark Yellow
#D5B60A
ΔE00 4.29
Muddy Yellow
#BFAC05
ΔE00 4.68
Gold (survey)
#DBB40C
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDB342 #425CCD
analogous
#CD6D42 #CDB342 #A1CD42
triadic
#CDB342 #42CDB3 #B342CD
tetradic
#CDB342 #42CD6D #425CCD #CD42A1
square
#CDB342 #42CD6D #425CCD #CD42A1
split-complementary
#CDB342 #42A1CD #6D42CD
monochromatic
#76651F #A68F2C #CDB342 #DAC672 #E7DAA3
Accessibility & contrast
On white
2.07
#CDB342 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.12
#CDB342 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDB342
10.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDB342 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDB342 | 1.00 | 2.07 | 10.12 | 10.12 |
| #FFFFFF | 2.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AF33
Deuteranopia (green-blind)
#CBB848
Tritanopia (blue-blind)
#DDA69C
Achromatopsia (no color)
#B4B4B4
Design tokens & code
CSS
--color: #cdb342; /* rgb */ color: rgb(205, 179, 66); /* oklch */ color: oklch(76.9% 0.133 96.1);
Tailwind
colors: {
custom: {
50: '#e0c97c',
500: '#cdb342',
950: '#000000',
},
}SCSS
$custom: #cdb342; $custom-light: #e0c97c; $custom-dark: #000000;
JSON
{
"hex": "#cdb342",
"rgb": {
"r": 205,
"g": 179,
"b": 66
},
"hsl": {
"h": 48.777,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.76874,
"c": 0.13292,
"h": 96.1
},
"luminance": 0.45613
}Semantic roles & 50–950 ramp
primary
#CDB342
secondary
#97A3D3
accent
#63E146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C