#998F40#998F40
#998F40 is a light, moderate yellow. Relative luminance 0.268; OKLCH L 64.2% C 0.101 H 102.1°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #998F40 |
|---|---|
| RGB | rgb(153, 143, 64) |
| HSL | hsl(53, 41%, 43%) |
| HSV | hsv(53, 58%, 60%) |
| CMYK | cmyk(0%, 6.5%, 58.2%, 40%) |
| CIE-LAB | lab(58.78, -6.79, 42.58) |
| CIE-LCH | lch(58.78, 43.12, 99.06°) |
| OKLab | oklab(64.23% -0.0213 0.0989) |
| OKLCH | oklch(64.23% 0.101 102.1) |
| XYZ | xyz(23.8856, 26.7883, 8.7620) |
| Luminance | 0.2679 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Khaki
#9B8F55
ΔE00 4.02
Drab
#828344
ΔE00 6.78
Dark Sand
#A88F59
ΔE00 7.50
Khaki (survey)
#AAA662
ΔE00 7.69
Baby Poo
#AB9004
ΔE00 7.78
Baby Poop Green
#8F9805
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#998F40 #404A99
analogous
#996240 #998F40 #779940
triadic
#998F40 #40998F #8F4099
tetradic
#998F40 #409962 #404A99 #994077
square
#998F40 #409962 #404A99 #994077
split-complementary
#998F40 #407799 #624099
monochromatic
#433E1C #6E672E #998F40 #BBB05C #CDC587
Accessibility & contrast
On white
3.30
#998F40 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.36
#998F40 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #998F40
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##998F40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##998F40 | 1.00 | 3.30 | 6.36 | 6.36 |
| #FFFFFF | 3.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8B38
Deuteranopia (green-blind)
#9E8F44
Tritanopia (blue-blind)
#A4867E
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #998f40; /* rgb */ color: rgb(153, 143, 64); /* oklch */ color: oklch(64.2% 0.101 102.1);
Tailwind
colors: {
custom: {
50: '#b9af78',
500: '#998f40',
950: '#000000',
},
}SCSS
$custom: #998f40; $custom-light: #b9af78; $custom-dark: #000000;
JSON
{
"hex": "#998f40",
"rgb": {
"r": 153,
"g": 143,
"b": 64
},
"hsl": {
"h": 53.258,
"s": 41.014,
"l": 42.549
},
"oklch": {
"l": 0.6423,
"c": 0.10112,
"h": 102.1
},
"luminance": 0.26787
}Semantic roles & 50–950 ramp
primary
#998F40
secondary
#7E84B7
accent
#65D157
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B