#978F2B#978F2B
#978F2B is a light, moderate yellow. Relative luminance 0.264; OKLCH L 63.8% C 0.118 H 104.7°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #978F2B |
|---|---|
| RGB | rgb(151, 143, 43) |
| HSL | hsl(56, 56%, 38%) |
| HSV | hsv(56, 72%, 59%) |
| CMYK | cmyk(0%, 5.3%, 71.5%, 40.8%) |
| CIE-LAB | lab(58.41, -9.07, 51.49) |
| CIE-LCH | lch(58.41, 52.28, 100.00°) |
| OKLab | oklab(63.84% -0.0301 0.1146) |
| OKLCH | oklch(63.84% 0.118 104.7) |
| XYZ | xyz(23.0219, 26.3995, 6.1680) |
| Luminance | 0.2640 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 5.51
Baby Poop Green
#8F9805
ΔE00 5.58
Baby Shit Green
#889717
ΔE00 6.36
Baby Poo
#AB9004
ΔE00 6.59
Olive
#808000
ΔE00 6.63
Dark Khaki
#9B8F55
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978F2B #2B3397
analogous
#97592B #978F2B #69972B
triadic
#978F2B #2B978F #8F2B97
tetradic
#978F2B #2B9759 #2B3397 #972B69
square
#978F2B #2B9759 #2B3397 #972B69
split-complementary
#978F2B #2B6997 #592B97
monochromatic
#383510 #67621D #978F2B #C7BC39 #D4CC68
Accessibility & contrast
On white
3.34
#978F2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.28
#978F2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978F2B
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978F2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978F2B | 1.00 | 3.34 | 6.28 | 6.28 |
| #FFFFFF | 3.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9C8A1B
Deuteranopia (green-blind)
#9F8E32
Tritanopia (blue-blind)
#A2857B
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #978f2b; /* rgb */ color: rgb(151, 143, 43); /* oklch */ color: oklch(63.8% 0.118 104.7);
Tailwind
colors: {
custom: {
50: '#b9af6b',
500: '#978f2b',
950: '#000000',
},
}SCSS
$custom: #978f2b; $custom-light: #b9af6b; $custom-dark: #000000;
JSON
{
"hex": "#978f2b",
"rgb": {
"r": 151,
"g": 143,
"b": 43
},
"hsl": {
"h": 55.556,
"s": 55.67,
"l": 38.039
},
"oklch": {
"l": 0.63839,
"c": 0.11844,
"h": 104.7
},
"luminance": 0.26399
}Semantic roles & 50–950 ramp
primary
#978F2B
secondary
#636ABB
accent
#54DF49
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A