#998F31#998F31
#998F31 is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.114 H 103.2°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).
Color values
| HEX | #998F31 |
|---|---|
| RGB | rgb(153, 143, 49) |
| HSL | hsl(54, 51%, 40%) |
| HSV | hsv(54, 68%, 60%) |
| CMYK | cmyk(0%, 6.5%, 68%, 40%) |
| CIE-LAB | lab(58.64, -7.84, 49.31) |
| CIE-LCH | lch(58.64, 49.92, 99.03°) |
| OKLab | oklab(64.08% -0.026 0.1109) |
| OKLCH | oklch(64.08% 0.114 103.2) |
| XYZ | xyz(23.5147, 26.6399, 6.8085) |
| Luminance | 0.2664 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Khaki
#9B8F55
ΔE00 6.16
Pea Soup
#929901
ΔE00 6.29
Baby Poop Green
#8F9805
ΔE00 6.37
Baby Poo
#AB9004
ΔE00 6.40
Baby Shit Brown
#AD900D
ΔE00 6.72
Diarrhea
#9F8303
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#998F31 #313B99
analogous
#995B31 #998F31 #6F9931
triadic
#998F31 #31998F #8F3199
tetradic
#998F31 #31995B #313B99 #99316F
square
#998F31 #31995B #313B99 #99316F
split-complementary
#998F31 #316F99 #5B3199
monochromatic
#3C3813 #6B6422 #998F31 #C3B744 #D2C972
Accessibility & contrast
On white
3.32
#998F31 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.33
#998F31 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #998F31
6.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##998F31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##998F31 | 1.00 | 3.32 | 6.33 | 6.33 |
| #FFFFFF | 3.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9C8A24
Deuteranopia (green-blind)
#9F8F37
Tritanopia (blue-blind)
#A4857C
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #998f31; /* rgb */ color: rgb(153, 143, 49); /* oklch */ color: oklch(64.1% 0.114 103.2);
Tailwind
colors: {
custom: {
50: '#baaf6e',
500: '#998f31',
950: '#000000',
},
}SCSS
$custom: #998f31; $custom-light: #baaf6e; $custom-dark: #000000;
JSON
{
"hex": "#998f31",
"rgb": {
"r": 153,
"g": 143,
"b": 49
},
"hsl": {
"h": 54.231,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.64076,
"c": 0.11396,
"h": 103.2
},
"luminance": 0.26639
}Semantic roles & 50–950 ramp
primary
#998F31
secondary
#6C73BA
accent
#5BDB4D
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A