#978231#978231
#978231 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.0% C 0.103 H 94.5°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #978231 |
|---|---|
| RGB | rgb(151, 130, 49) |
| HSL | hsl(48, 51%, 39%) |
| HSV | hsv(48, 68%, 59%) |
| CMYK | cmyk(0%, 13.9%, 67.5%, 40.8%) |
| CIE-LAB | lab(54.83, -1.60, 45.27) |
| CIE-LCH | lch(54.83, 45.30, 92.03°) |
| OKLab | oklab(61.01% -0.0081 0.1025) |
| OKLCH | oklch(61.01% 0.103 94.5) |
| XYZ | xyz(21.3005, 22.7674, 6.1777) |
| Luminance | 0.2277 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 4.42
Diarrhea
#9F8303
ΔE00 4.67
Hazel
#8E7618
ΔE00 4.75
Puke Brown
#947706
ΔE00 5.24
Yellowish Brown
#9B7A01
ΔE00 5.37
Dark Mustard
#A88905
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#978231 #314697
analogous
#974F31 #978231 #799731
triadic
#978231 #319782 #823197
tetradic
#978231 #31974F #314697 #973179
square
#978231 #31974F #314697 #973179
split-complementary
#978231 #317997 #4F3197
monochromatic
#3B3213 #695A22 #978231 #C2A843 #D1BD71
Accessibility & contrast
On white
3.78
#978231 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.55
#978231 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #978231
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##978231 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##978231 | 1.00 | 3.78 | 5.55 | 5.55 |
| #FFFFFF | 3.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F7F27
Deuteranopia (green-blind)
#958635
Tritanopia (blue-blind)
#A37871
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #978231; /* rgb */ color: rgb(151, 130, 49); /* oklch */ color: oklch(61.0% 0.103 94.5);
Tailwind
colors: {
custom: {
50: '#b9a66d',
500: '#978231',
950: '#000000',
},
}SCSS
$custom: #978231; $custom-light: #b9a66d; $custom-dark: #000000;
JSON
{
"hex": "#978231",
"rgb": {
"r": 151,
"g": 130,
"b": 49
},
"hsl": {
"h": 47.647,
"s": 51,
"l": 39.216
},
"oklch": {
"l": 0.61012,
"c": 0.10279,
"h": 94.5
},
"luminance": 0.22766
}Semantic roles & 50–950 ramp
primary
#978231
secondary
#6B7BB9
accent
#6ADA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A