#978F1F#978F1F
#978F1F is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.126 H 105.1°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).
Color values
| HEX | #978F1F |
|---|---|
| RGB | rgb(151, 143, 31) |
| HSL | hsl(56, 66%, 36%) |
| HSV | hsv(56, 79%, 59%) |
| CMYK | cmyk(0%, 5.3%, 79.5%, 40.8%) |
| CIE-LAB | lab(58.34, -9.62, 55.74) |
| CIE-LCH | lch(58.34, 56.56, 99.80°) |
| OKLab | oklab(63.76% -0.0328 0.1213) |
| OKLCH | oklch(63.76% 0.126 105.1) |
| XYZ | xyz(22.8333, 26.3241, 5.1744) |
| Luminance | 0.2632 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 4.94
Baby Poop Green
#8F9805
ΔE00 5.09
Baby Poo
#AB9004
ΔE00 6.11
Baby Shit Green
#889717
ΔE00 6.20
Olive
#808000
ΔE00 6.42
Baby Shit Brown
#AD900D
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978F1F #1F2797
analogous
#97531F #978F1F #63971F
triadic
#978F1F #1F978F #8F1F97
tetradic
#978F1F #1F9753 #1F2797 #971F63
square
#978F1F #1F9753 #1F2797 #971F63
split-complementary
#978F1F #1F6397 #531F97
monochromatic
#312F0A #645F15 #978F1F #CABF29 #DCD354
Accessibility & contrast
On white
3.35
#978F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.26
#978F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978F1F
6.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978F1F | 1.00 | 3.35 | 6.26 | 6.26 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#9F8E28
Tritanopia (blue-blind)
#A3857A
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #978f1f; /* rgb */ color: rgb(151, 143, 31); /* oklch */ color: oklch(63.8% 0.126 105.1);
Tailwind
colors: {
custom: {
50: '#b9af65',
500: '#978f1f',
950: '#000000',
},
}SCSS
$custom: #978f1f; $custom-light: #b9af65; $custom-dark: #000000;
JSON
{
"hex": "#978f1f",
"rgb": {
"r": 151,
"g": 143,
"b": 31
},
"hsl": {
"h": 56,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.6376,
"c": 0.12561,
"h": 105.1
},
"luminance": 0.26323
}Semantic roles & 50–950 ramp
primary
#978F1F
secondary
#525ABF
accent
#4AE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A