#978C2B#978C2B
#978C2B is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.116 H 102.7°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #978C2B |
|---|---|
| RGB | rgb(151, 140, 43) |
| HSL | hsl(54, 56%, 38%) |
| HSV | hsv(54, 72%, 59%) |
| CMYK | cmyk(0%, 7.3%, 71.5%, 40.8%) |
| CIE-LAB | lab(57.57, -7.45, 50.65) |
| CIE-LCH | lch(57.57, 51.20, 98.37°) |
| OKLab | oklab(63.17% -0.0255 0.1128) |
| OKLCH | oklch(63.17% 0.116 102.7) |
| XYZ | xyz(22.5776, 25.5108, 6.0199) |
| Luminance | 0.2551 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 6.08
Baby Poo
#AB9004
ΔE00 6.22
Olive
#808000
ΔE00 6.37
Baby Shit Brown
#AD900D
ΔE00 6.56
Baby Poop
#937C00
ΔE00 6.57
Dark Mustard
#A88905
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C2B #2B3697
analogous
#97562B #978C2B #6C972B
triadic
#978C2B #2B978C #8C2B97
tetradic
#978C2B #2B9756 #2B3697 #972B6C
square
#978C2B #2B9756 #2B3697 #972B6C
split-complementary
#978C2B #2B6C97 #562B97
monochromatic
#383410 #67601D #978C2B #C7B839 #D4C968
Accessibility & contrast
On white
3.44
#978C2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.10
#978C2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C2B
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C2B | 1.00 | 3.44 | 6.10 | 6.10 |
| #FFFFFF | 3.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#99871C
Deuteranopia (green-blind)
#9C8C31
Tritanopia (blue-blind)
#A38279
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c2b; /* rgb */ color: rgb(151, 140, 43); /* oklch */ color: oklch(63.2% 0.116 102.7);
Tailwind
colors: {
custom: {
50: '#b9ad6b',
500: '#978c2b',
950: '#000000',
},
}SCSS
$custom: #978c2b; $custom-light: #b9ad6b; $custom-dark: #000000;
JSON
{
"hex": "#978c2b",
"rgb": {
"r": 151,
"g": 140,
"b": 43
},
"hsl": {
"h": 53.889,
"s": 55.67,
"l": 38.039
},
"oklch": {
"l": 0.63167,
"c": 0.11563,
"h": 102.7
},
"luminance": 0.2551
}Semantic roles & 50–950 ramp
primary
#978C2B
secondary
#636CBB
accent
#58DF49
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A