#978722#978722
#978722 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 62.0% C 0.117 H 99.8°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #978722 |
|---|---|
| RGB | rgb(151, 135, 34) |
| HSL | hsl(52, 63%, 36%) |
| HSV | hsv(52, 77%, 59%) |
| CMYK | cmyk(0%, 10.6%, 77.5%, 40.8%) |
| CIE-LAB | lab(56.11, -5.16, 52.68) |
| CIE-LCH | lch(56.11, 52.93, 95.59°) |
| OKLab | oklab(61.99% -0.02 0.1153) |
| OKLCH | oklch(61.99% 0.117 99.8) |
| XYZ | xyz(21.7163, 24.0238, 5.0063) |
| Luminance | 0.2402 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 4.12
Baby Poop
#937C00
ΔE00 4.43
Dark Mustard
#A88905
ΔE00 5.23
Baby Poo
#AB9004
ΔE00 5.64
Baby Shit Brown
#AD900D
ΔE00 5.92
Olive
#808000
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978722 #223297
analogous
#974D22 #978722 #6D9722
triadic
#978722 #229787 #872297
tetradic
#978722 #22974D #223297 #97226D
square
#978722 #22974D #223297 #97226D
split-complementary
#978722 #226D97 #4D2297
monochromatic
#332E0C #655A17 #978722 #C9B42D #DAC85A
Accessibility & contrast
On white
3.62
#978722 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.80
#978722 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978722
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978722 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978722 | 1.00 | 3.62 | 5.80 | 5.80 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#95830D
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#A37D74
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #978722; /* rgb */ color: rgb(151, 135, 34); /* oklch */ color: oklch(62.0% 0.117 99.8);
Tailwind
colors: {
custom: {
50: '#b9a966',
500: '#978722',
950: '#000000',
},
}SCSS
$custom: #978722; $custom-light: #b9a966; $custom-dark: #000000;
JSON
{
"hex": "#978722",
"rgb": {
"r": 151,
"g": 135,
"b": 34
},
"hsl": {
"h": 51.795,
"s": 63.243,
"l": 36.275
},
"oklch": {
"l": 0.61991,
"c": 0.11704,
"h": 99.8
},
"luminance": 0.24023
}Semantic roles & 50–950 ramp
primary
#978722
secondary
#5765BE
accent
#58E642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A