#978238#978238
#978238 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.1% C 0.097 H 93.5°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).
Color values
| HEX | #978238 |
|---|---|
| RGB | rgb(151, 130, 56) |
| HSL | hsl(47, 46%, 41%) |
| HSV | hsv(47, 63%, 59%) |
| CMYK | cmyk(0%, 13.9%, 62.9%, 40.8%) |
| CIE-LAB | lab(54.90, -1.13, 42.05) |
| CIE-LCH | lch(54.90, 42.07, 91.54°) |
| OKLab | oklab(61.09% -0.0059 0.0967) |
| OKLCH | oklch(61.09% 0.097 93.5) |
| XYZ | xyz(21.4599, 22.8312, 7.0171) |
| Luminance | 0.2283 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 5.24
Baby Poop
#937C00
ΔE00 5.41
Diarrhea
#9F8303
ΔE00 5.63
Puke Brown
#947706
ΔE00 5.89
Dark Khaki
#9B8F55
ΔE00 5.91
Yellowish Brown
#9B7A01
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978238 #384D97
analogous
#975238 #978238 #7C9738
triadic
#978238 #389782 #823897
tetradic
#978238 #389752 #384D97 #97387C
square
#978238 #389752 #384D97 #97387C
split-complementary
#978238 #387C97 #523897
monochromatic
#3E3517 #6A5C27 #978238 #BEA54F #CEBC7B
Accessibility & contrast
On white
3.77
#978238 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.57
#978238 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978238
5.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978238 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978238 | 1.00 | 3.77 | 5.57 | 5.57 |
| #FFFFFF | 3.77 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.57 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.57 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F8030
Deuteranopia (green-blind)
#94863B
Tritanopia (blue-blind)
#A37872
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #978238; /* rgb */ color: rgb(151, 130, 56); /* oklch */ color: oklch(61.1% 0.097 93.5);
Tailwind
colors: {
custom: {
50: '#b8a672',
500: '#978238',
950: '#000000',
},
}SCSS
$custom: #978238; $custom-light: #b8a672; $custom-dark: #000000;
JSON
{
"hex": "#978238",
"rgb": {
"r": 151,
"g": 130,
"b": 56
},
"hsl": {
"h": 46.737,
"s": 45.894,
"l": 40.588
},
"oklch": {
"l": 0.61086,
"c": 0.0969,
"h": 93.5
},
"luminance": 0.2283
}Semantic roles & 50–950 ramp
primary
#978238
secondary
#7382B7
accent
#6FD652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F08
muted
#817F7B