#978A42#978A42
#978A42 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.094 H 99.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #978A42 |
|---|---|
| RGB | rgb(151, 138, 66) |
| HSL | hsl(51, 39%, 43%) |
| HSV | hsv(51, 56%, 59%) |
| CMYK | cmyk(0%, 8.6%, 56.3%, 40.8%) |
| CIE-LAB | lab(57.22, -4.78, 39.76) |
| CIE-LCH | lch(57.22, 40.04, 96.86°) |
| OKLab | oklab(62.96% -0.0151 0.0931) |
| OKLCH | oklch(62.96% 0.094 99.2) |
| XYZ | xyz(22.8351, 25.1505, 8.8049) |
| Luminance | 0.2515 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Khaki
#9B8F55
ΔE00 3.34
Drab
#828344
ΔE00 6.05
Dark Sand
#A88F59
ΔE00 6.50
Diarrhea
#9F8303
ΔE00 7.48
Baby Poop
#937C00
ΔE00 7.72
Dark Beige
#AC9362
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978A42 #424F97
analogous
#976042 #978A42 #799742
triadic
#978A42 #42978A #8A4297
tetradic
#978A42 #429760 #424F97 #974279
square
#978A42 #429760 #424F97 #974279
split-complementary
#978A42 #427997 #604297
monochromatic
#423C1D #6C632F #978A42 #B8AB5E #CBC188
Accessibility & contrast
On white
3.48
#978A42 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.03
#978A42 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978A42
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978A42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978A42 | 1.00 | 3.48 | 6.03 | 6.03 |
| #FFFFFF | 3.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#96873B
Deuteranopia (green-blind)
#998B45
Tritanopia (blue-blind)
#A2817A
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #978a42; /* rgb */ color: rgb(151, 138, 66); /* oklch */ color: oklch(63.0% 0.094 99.2);
Tailwind
colors: {
custom: {
50: '#b8ab79',
500: '#978a42',
950: '#000000',
},
}SCSS
$custom: #978a42; $custom-light: #b8ab79; $custom-dark: #000000;
JSON
{
"hex": "#978a42",
"rgb": {
"r": 151,
"g": 138,
"b": 66
},
"hsl": {
"h": 50.824,
"s": 39.171,
"l": 42.549
},
"oklch": {
"l": 0.62959,
"c": 0.09428,
"h": 99.2
},
"luminance": 0.2515
}Semantic roles & 50–950 ramp
primary
#978A42
secondary
#7F87B6
accent
#6BCF59
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B