#978A2B#978A2B
#978A2B is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.114 H 101.4°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #978A2B |
|---|---|
| RGB | rgb(151, 138, 43) |
| HSL | hsl(53, 56%, 38%) |
| HSV | hsv(53, 72%, 59%) |
| CMYK | cmyk(0%, 8.6%, 71.5%, 40.8%) |
| CIE-LAB | lab(57.01, -6.36, 50.10) |
| CIE-LCH | lch(57.01, 50.50, 97.24°) |
| OKLab | oklab(62.72% -0.0224 0.1116) |
| OKLCH | oklch(62.72% 0.114 101.4) |
| XYZ | xyz(22.2880, 24.9317, 5.9233) |
| Luminance | 0.2493 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 5.44
Baby Poop
#937C00
ΔE00 5.85
Baby Poo
#AB9004
ΔE00 6.11
Dark Mustard
#A88905
ΔE00 6.16
Olive
#808000
ΔE00 6.34
Baby Shit Brown
#AD900D
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978A2B #2B3897
analogous
#97542B #978A2B #6E972B
triadic
#978A2B #2B978A #8A2B97
tetradic
#978A2B #2B9754 #2B3897 #972B6E
square
#978A2B #2B9754 #2B3897 #972B6E
split-complementary
#978A2B #2B6E97 #542B97
monochromatic
#383310 #675E1D #978A2B #C7B539 #D4C768
Accessibility & contrast
On white
3.51
#978A2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.99
#978A2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978A2B
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978A2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978A2B | 1.00 | 3.51 | 5.99 | 5.99 |
| #FFFFFF | 3.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#97861D
Deuteranopia (green-blind)
#9B8B31
Tritanopia (blue-blind)
#A38077
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #978a2b; /* rgb */ color: rgb(151, 138, 43); /* oklch */ color: oklch(62.7% 0.114 101.4);
Tailwind
colors: {
custom: {
50: '#b9ab6b',
500: '#978a2b',
950: '#000000',
},
}SCSS
$custom: #978a2b; $custom-light: #b9ab6b; $custom-dark: #000000;
JSON
{
"hex": "#978a2b",
"rgb": {
"r": 151,
"g": 138,
"b": 43
},
"hsl": {
"h": 52.778,
"s": 55.67,
"l": 38.039
},
"oklch": {
"l": 0.62722,
"c": 0.11384,
"h": 101.4
},
"luminance": 0.24931
}Semantic roles & 50–950 ramp
primary
#978A2B
secondary
#636EBB
accent
#5BDF49
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A