#D8C45F#D8C45F
#D8C45F is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.7% C 0.124 H 98.3°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).
Color values
| HEX | #D8C45F |
|---|---|
| RGB | rgb(216, 196, 95) |
| HSL | hsl(50, 61%, 61%) |
| HSV | hsv(50, 56%, 85%) |
| CMYK | cmyk(0%, 9.3%, 56%, 15.3%) |
| CIE-LAB | lab(78.99, -5.46, 52.44) |
| CIE-LCH | lch(78.99, 52.72, 95.95°) |
| OKLab | oklab(81.7% -0.0178 0.1224) |
| OKLCH | oklch(81.7% 0.124 98.3) |
| XYZ | xyz(50.1262, 54.9071, 18.7820) |
| Luminance | 0.5491 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 3.47
Sandy
#F1DA7A
ΔE00 5.55
Maize
#F4D054
ΔE00 5.97
Light Mustard
#F7D560
ΔE00 6.11
Dull Yellow
#EEDC5B
ΔE00 6.41
Mustard Yellow
#D2BD0A
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8C45F #5F73D8
analogous
#D8875F #D8C45F #AFD85F
triadic
#D8C45F #5FD8C4 #C45FD8
tetradic
#D8C45F #5FD887 #5F73D8 #D85FAF
square
#D8C45F #5FD887 #5F73D8 #D85FAF
split-complementary
#D8C45F #5FAFD8 #875FD8
monochromatic
#988525 #C9B031 #D8C45F #E4D690 #F0E8C1
Accessibility & contrast
On white
1.75
#D8C45F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.98
#D8C45F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8C45F
11.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8C45F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8C45F | 1.00 | 1.75 | 11.98 | 11.98 |
| #FFFFFF | 1.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5BF55
Deuteranopia (green-blind)
#DAC764
Tritanopia (blue-blind)
#E7B8AD
Achromatopsia (no color)
#C4C4C4
Design tokens & code
CSS
--color: #d8c45f; /* rgb */ color: rgb(216, 196, 95); /* oklch */ color: oklch(81.7% 0.124 98.3);
Tailwind
colors: {
custom: {
50: '#e7d58f',
500: '#d8c45f',
950: '#000000',
},
}SCSS
$custom: #d8c45f; $custom-light: #e7d58f; $custom-dark: #000000;
JSON
{
"hex": "#d8c45f",
"rgb": {
"r": 216,
"g": 196,
"b": 95
},
"hsl": {
"h": 50.083,
"s": 60.804,
"l": 60.98
},
"oklch": {
"l": 0.81701,
"c": 0.12365,
"h": 98.3
},
"luminance": 0.54905
}Semantic roles & 50–950 ramp
primary
#D8C45F
secondary
#3F4E9C
accent
#39C81D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F