#978421#978421
#978421 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.3% C 0.115 H 97.7°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #978421 |
|---|---|
| RGB | rgb(151, 132, 33) |
| HSL | hsl(50, 64%, 36%) |
| HSV | hsv(50, 78%, 59%) |
| CMYK | cmyk(0%, 12.6%, 78.1%, 40.8%) |
| CIE-LAB | lab(55.27, -3.55, 52.26) |
| CIE-LCH | lch(55.27, 52.38, 93.88°) |
| OKLab | oklab(61.32% -0.0155 0.1142) |
| OKLCH | oklch(61.32% 0.115 97.7) |
| XYZ | xyz(21.2894, 23.1928, 4.7938) |
| Luminance | 0.2319 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.34
Baby Poop
#937C00
ΔE00 3.36
Dark Mustard
#A88905
ΔE00 4.91
Hazel
#8E7618
ΔE00 5.24
Yellowish Brown
#9B7A01
ΔE00 5.29
Puke Brown
#947706
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978421 #213497
analogous
#974921 #978421 #6F9721
triadic
#978421 #219784 #842197
tetradic
#978421 #219749 #213497 #97216F
square
#978421 #219749 #213497 #97216F
split-complementary
#978421 #216F97 #492197
monochromatic
#332C0B #655816 #978421 #C9B02C #DAC558
Accessibility & contrast
On white
3.72
#978421 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.64
#978421 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978421
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978421 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978421 | 1.00 | 3.72 | 5.64 | 5.64 |
| #FFFFFF | 3.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#92810C
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#A37971
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #978421; /* rgb */ color: rgb(151, 132, 33); /* oklch */ color: oklch(61.3% 0.115 97.7);
Tailwind
colors: {
custom: {
50: '#b9a765',
500: '#978421',
950: '#000000',
},
}SCSS
$custom: #978421; $custom-light: #b9a765; $custom-dark: #000000;
JSON
{
"hex": "#978421",
"rgb": {
"r": 151,
"g": 132,
"b": 33
},
"hsl": {
"h": 50.339,
"s": 64.13,
"l": 36.078
},
"oklch": {
"l": 0.61322,
"c": 0.11527,
"h": 97.7
},
"luminance": 0.23192
}Semantic roles & 50–950 ramp
primary
#978421
secondary
#5566BE
accent
#5BE741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A