#998F42#998F42
#998F42 is a light, moderate yellow. Relative luminance 0.268; OKLCH L 64.3% C 0.099 H 102.0°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #998F42 |
|---|---|
| RGB | rgb(153, 143, 66) |
| HSL | hsl(53, 40%, 43%) |
| HSV | hsv(53, 57%, 60%) |
| CMYK | cmyk(0%, 6.5%, 56.9%, 40%) |
| CIE-LAB | lab(58.80, -6.63, 41.63) |
| CIE-LCH | lch(58.80, 42.15, 99.05°) |
| OKLab | oklab(64.25% -0.0206 0.0971) |
| OKLCH | oklch(64.25% 0.099 102) |
| XYZ | xyz(23.9435, 26.8114, 9.0671) |
| Luminance | 0.2681 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Khaki
#9B8F55
ΔE00 3.70
Drab
#828344
ΔE00 6.65
Dark Sand
#A88F59
ΔE00 7.28
Khaki (survey)
#AAA662
ΔE00 7.57
Baby Poo
#AB9004
ΔE00 8.01
Baby Poop Green
#8F9805
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#998F42 #424C99
analogous
#996342 #998F42 #789942
triadic
#998F42 #42998F #8F4299
tetradic
#998F42 #429963 #424C99 #994278
square
#998F42 #429963 #424C99 #994278
split-complementary
#998F42 #427899 #634299
monochromatic
#433F1D #6E6730 #998F42 #BAAF5E #CCC489
Accessibility & contrast
On white
3.30
#998F42 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.36
#998F42 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #998F42
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##998F42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##998F42 | 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)
#9B8B3A
Deuteranopia (green-blind)
#9E8F46
Tritanopia (blue-blind)
#A4867E
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #998f42; /* rgb */ color: rgb(153, 143, 66); /* oklch */ color: oklch(64.3% 0.099 102.0);
Tailwind
colors: {
custom: {
50: '#b9af79',
500: '#998f42',
950: '#000000',
},
}SCSS
$custom: #998f42; $custom-light: #b9af79; $custom-dark: #000000;
JSON
{
"hex": "#998f42",
"rgb": {
"r": 153,
"g": 143,
"b": 66
},
"hsl": {
"h": 53.103,
"s": 39.726,
"l": 42.941
},
"oklch": {
"l": 0.64254,
"c": 0.09921,
"h": 102
},
"luminance": 0.26811
}Semantic roles & 50–950 ramp
primary
#998F42
secondary
#8086B7
accent
#66D058
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B