#978C1A#978C1A
#978C1A is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.125 H 103.5°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #978C1A |
|---|---|
| RGB | rgb(151, 140, 26) |
| HSL | hsl(55, 71%, 35%) |
| HSV | hsv(55, 83%, 59%) |
| CMYK | cmyk(0%, 7.3%, 82.8%, 40.8%) |
| CIE-LAB | lab(57.47, -8.18, 56.49) |
| CIE-LCH | lch(57.47, 57.08, 98.24°) |
| OKLab | oklab(63.06% -0.0292 0.1219) |
| OKLCH | oklch(63.06% 0.125 103.5) |
| XYZ | xyz(22.3281, 25.4110, 4.7058) |
| Luminance | 0.2541 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 5.53
Diarrhea
#9F8303
ΔE00 5.65
Pea Soup
#929901
ΔE00 6.01
Baby Shit Brown
#AD900D
ΔE00 6.02
Olive
#808000
ΔE00 6.05
Dark Mustard
#A88905
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978C1A #1A2597
analogous
#974E1A #978C1A #64971A
triadic
#978C1A #1A978C #8C1A97
tetradic
#978C1A #1A974E #1A2597 #971A64
square
#978C1A #1A974E #1A2597 #971A64
split-complementary
#978C1A #1A6497 #4E1A97
monochromatic
#2F2B08 #635C11 #978C1A #CBBC23 #E0D34B
Accessibility & contrast
On white
3.45
#978C1A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.08
#978C1A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978C1A
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978C1A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978C1A | 1.00 | 3.45 | 6.08 | 6.08 |
| #FFFFFF | 3.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9D8C24
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #978c1a; /* rgb */ color: rgb(151, 140, 26); /* oklch */ color: oklch(63.1% 0.125 103.5);
Tailwind
colors: {
custom: {
50: '#b9ad63',
500: '#978c1a',
950: '#000000',
},
}SCSS
$custom: #978c1a; $custom-light: #b9ad63; $custom-dark: #000000;
JSON
{
"hex": "#978c1a",
"rgb": {
"r": 151,
"g": 140,
"b": 26
},
"hsl": {
"h": 54.72,
"s": 70.621,
"l": 34.706
},
"oklch": {
"l": 0.6306,
"c": 0.12534,
"h": 103.5
},
"luminance": 0.2541
}Semantic roles & 50–950 ramp
primary
#978C1A
secondary
#4B55C2
accent
#4AED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A