#978A1F#978A1F
#978A1F is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.6% C 0.121 H 102.0°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #978A1F |
|---|---|
| RGB | rgb(151, 138, 31) |
| HSL | hsl(54, 66%, 36%) |
| HSV | hsv(54, 79%, 59%) |
| CMYK | cmyk(0%, 8.6%, 79.5%, 40.8%) |
| CIE-LAB | lab(56.94, -6.92, 54.47) |
| CIE-LCH | lch(56.94, 54.91, 97.24°) |
| OKLab | oklab(62.64% -0.0252 0.1185) |
| OKLCH | oklch(62.64% 0.121 102) |
| XYZ | xyz(22.0994, 24.8562, 4.9297) |
| Luminance | 0.2485 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 5.00
Baby Poop
#937C00
ΔE00 5.50
Baby Poo
#AB9004
ΔE00 5.51
Dark Mustard
#A88905
ΔE00 5.71
Baby Shit Brown
#AD900D
ΔE00 5.91
Olive
#808000
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978A1F #1F2C97
analogous
#974E1F #978A1F #68971F
triadic
#978A1F #1F978A #8A1F97
tetradic
#978A1F #1F974E #1F2C97 #971F68
square
#978A1F #1F974E #1F2C97 #971F68
split-complementary
#978A1F #1F6897 #4E1F97
monochromatic
#312D0A #645C15 #978A1F #CAB829 #DCCD54
Accessibility & contrast
On white
3.52
#978A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.97
#978A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978A1F
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978A1F | 1.00 | 3.52 | 5.97 | 5.97 |
| #FFFFFF | 3.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988603
Deuteranopia (green-blind)
#9B8B27
Tritanopia (blue-blind)
#A38076
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #978a1f; /* rgb */ color: rgb(151, 138, 31); /* oklch */ color: oklch(62.6% 0.121 102.0);
Tailwind
colors: {
custom: {
50: '#b9ab65',
500: '#978a1f',
950: '#000000',
},
}SCSS
$custom: #978a1f; $custom-light: #b9ab65; $custom-dark: #000000;
JSON
{
"hex": "#978a1f",
"rgb": {
"r": 151,
"g": 138,
"b": 31
},
"hsl": {
"h": 53.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.6264,
"c": 0.12118,
"h": 102
},
"luminance": 0.24855
}Semantic roles & 50–950 ramp
primary
#978A1F
secondary
#525EBF
accent
#51E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A