#978338#978338
#978338 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.3% C 0.098 H 94.4°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #978338 |
|---|---|
| RGB | rgb(151, 131, 56) |
| HSL | hsl(47, 46%, 41%) |
| HSV | hsv(47, 63%, 59%) |
| CMYK | cmyk(0%, 13.2%, 62.9%, 40.8%) |
| CIE-LAB | lab(55.17, -1.69, 42.36) |
| CIE-LCH | lch(55.17, 42.39, 92.28°) |
| OKLab | oklab(61.3% -0.0075 0.0974) |
| OKLCH | oklch(61.3% 0.098 94.4) |
| XYZ | xyz(21.5936, 23.0985, 7.0617) |
| Luminance | 0.2310 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 5.43
Hazel
#8E7618
ΔE00 5.48
Diarrhea
#9F8303
ΔE00 5.58
Dark Khaki
#9B8F55
ΔE00 5.66
Puke Brown
#947706
ΔE00 6.12
Yellowish Brown
#9B7A01
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978338 #384C97
analogous
#975338 #978338 #7C9738
triadic
#978338 #389783 #833897
tetradic
#978338 #389753 #384C97 #97387C
square
#978338 #389753 #384C97 #97387C
split-complementary
#978338 #387C97 #533897
monochromatic
#3E3617 #6A5C27 #978338 #BEA64F #CEBD7B
Accessibility & contrast
On white
3.74
#978338 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.62
#978338 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978338
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978338 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978338 | 1.00 | 3.74 | 5.62 | 5.62 |
| #FFFFFF | 3.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#908130
Deuteranopia (green-blind)
#95873B
Tritanopia (blue-blind)
#A37973
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #978338; /* rgb */ color: rgb(151, 131, 56); /* oklch */ color: oklch(61.3% 0.098 94.4);
Tailwind
colors: {
custom: {
50: '#b8a672',
500: '#978338',
950: '#000000',
},
}SCSS
$custom: #978338; $custom-light: #b8a672; $custom-dark: #000000;
JSON
{
"hex": "#978338",
"rgb": {
"r": 151,
"g": 131,
"b": 56
},
"hsl": {
"h": 47.368,
"s": 45.894,
"l": 40.588
},
"oklch": {
"l": 0.61303,
"c": 0.09766,
"h": 94.4
},
"luminance": 0.23097
}Semantic roles & 50–950 ramp
primary
#978338
secondary
#7382B7
accent
#6ED652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F08
muted
#817F7B