#978C2F#978C2F
#978C2F is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.113 H 102.5°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).
Color values
| HEX | #978C2F |
|---|---|
| RGB | rgb(151, 140, 47) |
| HSL | hsl(54, 53%, 39%) |
| HSV | hsv(54, 69%, 59%) |
| CMYK | cmyk(0%, 7.3%, 68.9%, 40.8%) |
| CIE-LAB | lab(57.60, -7.23, 49.03) |
| CIE-LCH | lch(57.60, 49.56, 98.39°) |
| OKLab | oklab(63.2% -0.0244 0.1101) |
| OKLCH | oklch(63.2% 0.113 102.5) |
| XYZ | xyz(22.6546, 25.5416, 6.4255) |
| Luminance | 0.2554 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Khaki
#9B8F55
ΔE00 6.16
Diarrhea
#9F8303
ΔE00 6.28
Baby Poo
#AB9004
ΔE00 6.49
Olive
#808000
ΔE00 6.55
Baby Poop
#937C00
ΔE00 6.73
Baby Shit Brown
#AD900D
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C2F #2F3A97
analogous
#97582F #978C2F #6E972F
triadic
#978C2F #2F978C #8C2F97
tetradic
#978C2F #2F9758 #2F3A97 #972F6E
square
#978C2F #2F9758 #2F3A97 #972F6E
split-complementary
#978C2F #2F6E97 #582F97
monochromatic
#3A3512 #686120 #978C2F #C3B640 #D2C76E
Accessibility & contrast
On white
3.44
#978C2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.11
#978C2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C2F
6.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C2F | 1.00 | 3.44 | 6.11 | 6.11 |
| #FFFFFF | 3.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998822
Deuteranopia (green-blind)
#9C8D35
Tritanopia (blue-blind)
#A28279
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c2f; /* rgb */ color: rgb(151, 140, 47); /* oklch */ color: oklch(63.2% 0.113 102.5);
Tailwind
colors: {
custom: {
50: '#b9ad6d',
500: '#978c2f',
950: '#000000',
},
}SCSS
$custom: #978c2f; $custom-light: #b9ad6d; $custom-dark: #000000;
JSON
{
"hex": "#978c2f",
"rgb": {
"r": 151,
"g": 140,
"b": 47
},
"hsl": {
"h": 53.654,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.632,
"c": 0.11276,
"h": 102.5
},
"luminance": 0.25541
}Semantic roles & 50–950 ramp
primary
#978C2F
secondary
#6871B9
accent
#5BDC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A