#D4B22F#D4B22F
#D4B22F is a light, vivid yellow. Relative luminance 0.460; OKLCH L 77.2% C 0.145 H 93.5°. Best body text is #000000 at 10.21:1 contrast (WCAG AA passes).
Color values
| HEX | #D4B22F |
|---|---|
| RGB | rgb(212, 178, 47) |
| HSL | hsl(48, 66%, 51%) |
| HSV | hsv(48, 78%, 83%) |
| CMYK | cmyk(0%, 16%, 77.8%, 16.9%) |
| CIE-LAB | lab(73.58, -0.52, 66.42) |
| CIE-LCH | lch(73.58, 66.42, 90.45°) |
| OKLab | oklab(77.21% -0.0088 0.1445) |
| OKLCH | oklch(77.21% 0.145 93.5) |
| XYZ | xyz(43.5873, 46.0457, 9.2807) |
| Luminance | 0.4604 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 1.55
Gold (survey)
#DBB40C
ΔE00 2.43
Dark Yellow
#D5B60A
ΔE00 2.68
Burnt Yellow
#D5AB09
ΔE00 2.93
Mustard (survey)
#CEB301
ΔE00 3.12
Brownish Yellow
#C9B003
ΔE00 3.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D4B22F #2F51D4
analogous
#D45F2F #D4B22F #A4D42F
triadic
#D4B22F #2FD4B2 #B22FD4
tetradic
#D4B22F #2FD45F #2F51D4 #D42FA4
square
#D4B22F #2FD45F #2F51D4 #D42FA4
split-complementary
#D4B22F #2FA4D4 #5F2FD4
monochromatic
#715F17 #A48922 #D4B22F #DEC562 #E9D894
Accessibility & contrast
On white
2.06
#D4B22F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.21
#D4B22F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D4B22F
10.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D4B22F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D4B22F | 1.00 | 2.06 | 10.21 | 10.21 |
| #FFFFFF | 2.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6AF12
Deuteranopia (green-blind)
#CEB938
Tritanopia (blue-blind)
#E5A399
Achromatopsia (no color)
#B5B5B5
Design tokens & code
CSS
--color: #d4b22f; /* rgb */ color: rgb(212, 178, 47); /* oklch */ color: oklch(77.2% 0.145 93.5);
Tailwind
colors: {
custom: {
50: '#e6c872',
500: '#d4b22f',
950: '#000000',
},
}SCSS
$custom: #d4b22f; $custom-light: #e6c872; $custom-dark: #000000;
JSON
{
"hex": "#d4b22f",
"rgb": {
"r": 212,
"g": 178,
"b": 47
},
"hsl": {
"h": 47.636,
"s": 65.737,
"l": 50.784
},
"oklch": {
"l": 0.77211,
"c": 0.14481,
"h": 93.5
},
"luminance": 0.46043
}Semantic roles & 50–950 ramp
primary
#D4B22F
secondary
#8B9AD4
accent
#62E93F
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#171309
muted
#85827B