#998228#998228
#998228 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.1% C 0.110 H 94.3°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #998228 |
|---|---|
| RGB | rgb(153, 130, 40) |
| HSL | hsl(48, 59%, 38%) |
| HSV | hsv(48, 74%, 60%) |
| CMYK | cmyk(0%, 15%, 73.9%, 40%) |
| CIE-LAB | lab(54.96, -1.20, 49.35) |
| CIE-LCH | lch(54.96, 49.37, 91.39°) |
| OKLab | oklab(61.14% -0.0082 0.1094) |
| OKLCH | oklch(61.14% 0.11 94.3) |
| XYZ | xyz(21.5036, 22.8920, 5.2930) |
| Luminance | 0.2289 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.33
Baby Poop
#937C00
ΔE00 3.46
Yellowish Brown
#9B7A01
ΔE00 4.36
Puke Brown
#947706
ΔE00 4.50
Hazel
#8E7618
ΔE00 4.51
Dark Mustard
#A88905
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#998228 #283F99
analogous
#994A28 #998228 #779928
triadic
#998228 #289982 #822899
tetradic
#998228 #28994A #283F99 #992877
square
#998228 #28994A #283F99 #992877
split-complementary
#998228 #287799 #4A2899
monochromatic
#38300F #68591B #998228 #CAAB35 #D7BF65
Accessibility & contrast
On white
3.76
#998228 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.58
#998228 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #998228
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##998228 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##998228 | 1.00 | 3.76 | 5.58 | 5.58 |
| #FFFFFF | 3.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#90801A
Deuteranopia (green-blind)
#96872D
Tritanopia (blue-blind)
#A67770
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #998228; /* rgb */ color: rgb(153, 130, 40); /* oklch */ color: oklch(61.1% 0.110 94.3);
Tailwind
colors: {
custom: {
50: '#bba668',
500: '#998228',
950: '#000000',
},
}SCSS
$custom: #998228; $custom-light: #bba668; $custom-dark: #000000;
JSON
{
"hex": "#998228",
"rgb": {
"r": 153,
"g": 130,
"b": 40
},
"hsl": {
"h": 47.788,
"s": 58.549,
"l": 37.843
},
"oklch": {
"l": 0.61138,
"c": 0.1097,
"h": 94.3
},
"luminance": 0.22891
}Semantic roles & 50–950 ramp
primary
#998228
secondary
#6073BD
accent
#66E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A