#D2C14F#D2C14F
#D2C14F is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.4% C 0.135 H 100.8°. Best body text is #000000 at 11.48:1 contrast (WCAG AA passes).
Color values
| HEX | #D2C14F |
|---|---|
| RGB | rgb(210, 193, 79) |
| HSL | hsl(52, 59%, 57%) |
| HSV | hsv(52, 62%, 82%) |
| CMYK | cmyk(0%, 8.1%, 62.4%, 17.6%) |
| CIE-LAB | lab(77.52, -7.56, 57.88) |
| CIE-LCH | lch(77.52, 58.37, 97.44°) |
| OKLab | oklab(80.37% -0.0253 0.1321) |
| OKLCH | oklch(80.37% 0.135 100.8) |
| XYZ | xyz(47.0615, 52.4080, 15.0324) |
| Luminance | 0.5241 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Yellow
#D2BD0A
ΔE00 4.81
Ugly Yellow
#D0C101
ΔE00 5.02
Olive Yellow
#C2B709
ΔE00 5.32
Vomit Yellow
#C7C10C
ΔE00 5.35
Dirty Yellow
#CDC50A
ΔE00 5.41
Puke Yellow
#C2BE0E
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2C14F #4F60D2
analogous
#D2804F #D2C14F #A2D24F
triadic
#D2C14F #4FD2C1 #C14FD2
tetradic
#D2C14F #4FD280 #4F60D2 #D24FA2
square
#D2C14F #4FD280 #4F60D2 #D24FA2
split-complementary
#D2C14F #4FA2D2 #804FD2
monochromatic
#857822 #B5A42E #D2C14F #DED280 #EBE3B0
Accessibility & contrast
On white
1.83
#D2C14F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.48
#D2C14F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2C14F
11.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2C14F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2C14F | 1.00 | 1.83 | 11.48 | 11.48 |
| #FFFFFF | 1.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D2BC42
Deuteranopia (green-blind)
#D7C355
Tritanopia (blue-blind)
#E1B4A9
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #d2c14f; /* rgb */ color: rgb(210, 193, 79); /* oklch */ color: oklch(80.4% 0.135 100.8);
Tailwind
colors: {
custom: {
50: '#e3d385',
500: '#d2c14f',
950: '#000000',
},
}SCSS
$custom: #d2c14f; $custom-light: #e3d385; $custom-dark: #000000;
JSON
{
"hex": "#d2c14f",
"rgb": {
"r": 210,
"g": 193,
"b": 79
},
"hsl": {
"h": 52.214,
"s": 59.276,
"l": 56.667
},
"oklch": {
"l": 0.80366,
"c": 0.13452,
"h": 100.8
},
"luminance": 0.52406
}Semantic roles & 50–950 ramp
primary
#D2C14F
secondary
#3A448C
accent
#5AE245
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E