#897F18#897F18
#897F18 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.116 H 103.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #897F18 |
|---|---|
| RGB | rgb(137, 127, 24) |
| HSL | hsl(55, 70%, 32%) |
| HSV | hsv(55, 82%, 54%) |
| CMYK | cmyk(0%, 7.3%, 82.5%, 46.3%) |
| CIE-LAB | lab(52.47, -7.61, 52.23) |
| CIE-LCH | lch(52.47, 52.78, 98.29°) |
| OKLab | oklab(58.77% -0.027 0.113) |
| OKLCH | oklch(58.77% 0.116 103.5) |
| XYZ | xyz(18.0716, 20.5638, 3.8813) |
| Luminance | 0.2056 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.20
Baby Poop
#937C00
ΔE00 4.33
Hazel
#8E7618
ΔE00 5.26
Ugly Brown
#7D7103
ΔE00 5.37
Shit Green
#758000
ΔE00 6.13
Puke Brown
#947706
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#897F18 #182289
analogous
#894718 #897F18 #5B8918
triadic
#897F18 #18897F #7F1889
tetradic
#897F18 #188947 #182289 #89185B
square
#897F18 #188947 #182289 #89185B
split-complementary
#897F18 #185B89 #471889
monochromatic
#211E06 #554F0F #897F18 #BDAF21 #DDCF3E
Accessibility & contrast
On white
4.11
#897F18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#897F18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #897F18
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##897F18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##897F18 | 1.00 | 4.11 | 5.11 | 5.11 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B00
Deuteranopia (green-blind)
#8E7F21
Tritanopia (blue-blind)
#94756C
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #897f18; /* rgb */ color: rgb(137, 127, 24); /* oklch */ color: oklch(58.8% 0.116 103.5);
Tailwind
colors: {
custom: {
50: '#afa360',
500: '#897f18',
950: '#000000',
},
}SCSS
$custom: #897f18; $custom-light: #afa360; $custom-dark: #000000;
JSON
{
"hex": "#897f18",
"rgb": {
"r": 137,
"g": 127,
"b": 24
},
"hsl": {
"h": 54.69,
"s": 70.186,
"l": 31.569
},
"oklch": {
"l": 0.58765,
"c": 0.11616,
"h": 103.5
},
"luminance": 0.20563
}Semantic roles & 50–950 ramp
primary
#897F18
secondary
#404BBD
accent
#4BED3B
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#110F05
muted
#807F79