#978331#978331
#978331 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 61.2% C 0.104 H 95.4°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).
Color values
| HEX | #978331 |
|---|---|
| RGB | rgb(151, 131, 49) |
| HSL | hsl(48, 51%, 39%) |
| HSV | hsv(48, 68%, 59%) |
| CMYK | cmyk(0%, 13.2%, 67.5%, 40.8%) |
| CIE-LAB | lab(55.11, -2.16, 45.56) |
| CIE-LCH | lch(55.11, 45.62, 92.71°) |
| OKLab | oklab(61.23% -0.0097 0.1031) |
| OKLCH | oklch(61.23% 0.104 95.4) |
| XYZ | xyz(21.4342, 23.0348, 6.2223) |
| Luminance | 0.2303 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 4.51
Diarrhea
#9F8303
ΔE00 4.66
Hazel
#8E7618
ΔE00 5.05
Puke Brown
#947706
ΔE00 5.54
Yellowish Brown
#9B7A01
ΔE00 5.64
Dark Mustard
#A88905
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978331 #314597
analogous
#975031 #978331 #789731
triadic
#978331 #319783 #833197
tetradic
#978331 #319750 #314597 #973178
square
#978331 #319750 #314597 #973178
split-complementary
#978331 #317897 #503197
monochromatic
#3B3313 #695B22 #978331 #C2A943 #D1BE71
Accessibility & contrast
On white
3.75
#978331 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.61
#978331 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978331
5.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978331 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978331 | 1.00 | 3.75 | 5.61 | 5.61 |
| #FFFFFF | 3.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#908027
Deuteranopia (green-blind)
#958735
Tritanopia (blue-blind)
#A37972
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #978331; /* rgb */ color: rgb(151, 131, 49); /* oklch */ color: oklch(61.2% 0.104 95.4);
Tailwind
colors: {
custom: {
50: '#b9a66d',
500: '#978331',
950: '#000000',
},
}SCSS
$custom: #978331; $custom-light: #b9a66d; $custom-dark: #000000;
JSON
{
"hex": "#978331",
"rgb": {
"r": 151,
"g": 131,
"b": 49
},
"hsl": {
"h": 48.235,
"s": 51,
"l": 39.216
},
"oklch": {
"l": 0.61231,
"c": 0.10355,
"h": 95.4
},
"luminance": 0.23034
}Semantic roles & 50–950 ramp
primary
#978331
secondary
#6B7AB9
accent
#69DA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A