#978D2F#978D2F
#978D2F is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.4% C 0.114 H 103.2°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #978D2F |
|---|---|
| RGB | rgb(151, 141, 47) |
| HSL | hsl(54, 53%, 39%) |
| HSV | hsv(54, 69%, 59%) |
| CMYK | cmyk(0%, 6.6%, 68.9%, 40.8%) |
| CIE-LAB | lab(57.88, -7.77, 49.32) |
| CIE-LCH | lch(57.88, 49.93, 98.95°) |
| OKLab | oklab(63.42% -0.026 0.1107) |
| OKLCH | oklch(63.42% 0.114 103.2) |
| XYZ | xyz(22.8014, 25.8352, 6.4744) |
| Luminance | 0.2583 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Khaki
#9B8F55
ΔE00 6.25
Pea Soup
#929901
ΔE00 6.55
Baby Poo
#AB9004
ΔE00 6.57
Baby Poop Green
#8F9805
ΔE00 6.59
Diarrhea
#9F8303
ΔE00 6.59
Olive
#808000
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978D2F #2F3997
analogous
#97592F #978D2F #6D972F
triadic
#978D2F #2F978D #8D2F97
tetradic
#978D2F #2F9759 #2F3997 #972F6D
square
#978D2F #2F9759 #2F3997 #972F6D
split-complementary
#978D2F #2F6D97 #592F97
monochromatic
#3A3612 #686120 #978D2F #C3B740 #D2C86E
Accessibility & contrast
On white
3.41
#978D2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.17
#978D2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978D2F
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978D2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978D2F | 1.00 | 3.41 | 6.17 | 6.17 |
| #FFFFFF | 3.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8822
Deuteranopia (green-blind)
#9D8D35
Tritanopia (blue-blind)
#A2837A
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #978d2f; /* rgb */ color: rgb(151, 141, 47); /* oklch */ color: oklch(63.4% 0.114 103.2);
Tailwind
colors: {
custom: {
50: '#b9ae6d',
500: '#978d2f',
950: '#000000',
},
}SCSS
$custom: #978d2f; $custom-light: #b9ae6d; $custom-dark: #000000;
JSON
{
"hex": "#978d2f",
"rgb": {
"r": 151,
"g": 141,
"b": 47
},
"hsl": {
"h": 54.231,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.63424,
"c": 0.11368,
"h": 103.2
},
"luminance": 0.25834
}Semantic roles & 50–950 ramp
primary
#978D2F
secondary
#6870B9
accent
#5ADC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A