#D4C152#D4C152
#D4C152 is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.6% C 0.132 H 99.6°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #D4C152 |
|---|---|
| RGB | rgb(212, 193, 82) |
| HSL | hsl(51, 60%, 58%) |
| HSV | hsv(51, 61%, 83%) |
| CMYK | cmyk(0%, 9%, 61.3%, 16.9%) |
| CIE-LAB | lab(77.73, -6.52, 56.84) |
| CIE-LCH | lch(77.73, 57.21, 96.55°) |
| OKLab | oklab(80.58% -0.0221 0.1303) |
| OKLCH | oklch(80.58% 0.132 99.6) |
| XYZ | xyz(47.7462, 52.7482, 15.6474) |
| Luminance | 0.5275 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 5.05
Mustard Yellow
#D2BD0A
ΔE00 5.05
Ugly Yellow
#D0C101
ΔE00 5.43
Olive Yellow
#C2B709
ΔE00 5.81
Dark Yellow
#D5B60A
ΔE00 5.92
Vomit Yellow
#C7C10C
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D4C152 #5265D4
analogous
#D48052 #D4C152 #A6D452
triadic
#D4C152 #52D4C1 #C152D4
tetradic
#D4C152 #52D480 #5265D4 #D452A6
square
#D4C152 #52D480 #5265D4 #D452A6
split-complementary
#D4C152 #52A6D4 #8052D4
monochromatic
#897A22 #BAA62E #D4C152 #E0D383 #ECE4B4
Accessibility & contrast
On white
1.82
#D4C152 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.55
#D4C152 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D4C152
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D4C152 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D4C152 | 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)
#D2BC46
Deuteranopia (green-blind)
#D7C358
Tritanopia (blue-blind)
#E3B4A9
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #d4c152; /* rgb */ color: rgb(212, 193, 82); /* oklch */ color: oklch(80.6% 0.132 99.6);
Tailwind
colors: {
custom: {
50: '#e4d387',
500: '#d4c152',
950: '#000000',
},
}SCSS
$custom: #d4c152; $custom-light: #e4d387; $custom-dark: #000000;
JSON
{
"hex": "#d4c152",
"rgb": {
"r": 212,
"g": 193,
"b": 82
},
"hsl": {
"h": 51.231,
"s": 60.185,
"l": 57.647
},
"oklch": {
"l": 0.80576,
"c": 0.13213,
"h": 99.6
},
"luminance": 0.52746
}Semantic roles & 50–950 ramp
primary
#D4C152
secondary
#3B4790
accent
#5CE344
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F