#998E31#998E31
#998E31 is a light, moderate yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.113 H 102.5°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #998E31 |
|---|---|
| RGB | rgb(153, 142, 49) |
| HSL | hsl(54, 51%, 40%) |
| HSV | hsv(54, 68%, 60%) |
| CMYK | cmyk(0%, 7.2%, 68%, 40%) |
| CIE-LAB | lab(58.36, -7.30, 49.02) |
| CIE-LCH | lch(58.36, 49.56, 98.47°) |
| OKLab | oklab(63.85% -0.0245 0.1103) |
| OKLCH | oklch(63.85% 0.113 102.5) |
| XYZ | xyz(23.3652, 26.3410, 6.7587) |
| Luminance | 0.2634 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Khaki
#9B8F55
ΔE00 6.04
Baby Poo
#AB9004
ΔE00 6.28
Diarrhea
#9F8303
ΔE00 6.54
Baby Shit Brown
#AD900D
ΔE00 6.57
Pea Soup
#929901
ΔE00 6.66
Baby Poop Green
#8F9805
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#998E31 #313C99
analogous
#995A31 #998E31 #709931
triadic
#998E31 #31998E #8E3199
tetradic
#998E31 #31995A #313C99 #993170
square
#998E31 #31995A #313C99 #993170
split-complementary
#998E31 #317099 #5A3199
monochromatic
#3C3813 #6B6322 #998E31 #C3B644 #D2C872
Accessibility & contrast
On white
3.35
#998E31 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.27
#998E31 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #998E31
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##998E31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##998E31 | 1.00 | 3.35 | 6.27 | 6.27 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8A24
Deuteranopia (green-blind)
#9E8F37
Tritanopia (blue-blind)
#A4847B
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #998e31; /* rgb */ color: rgb(153, 142, 49); /* oklch */ color: oklch(63.9% 0.113 102.5);
Tailwind
colors: {
custom: {
50: '#baae6e',
500: '#998e31',
950: '#000000',
},
}SCSS
$custom: #998e31; $custom-light: #baae6e; $custom-dark: #000000;
JSON
{
"hex": "#998e31",
"rgb": {
"r": 153,
"g": 142,
"b": 49
},
"hsl": {
"h": 53.654,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.63853,
"c": 0.11302,
"h": 102.5
},
"luminance": 0.2634
}Semantic roles & 50–950 ramp
primary
#998E31
secondary
#6C74BA
accent
#5CDB4D
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A