#897F17#897F17
#897F17 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.117 H 103.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #897F17 |
|---|---|
| RGB | rgb(137, 127, 23) |
| HSL | hsl(55, 71%, 31%) |
| HSV | hsv(55, 83%, 54%) |
| CMYK | cmyk(0%, 7.3%, 83.2%, 46.3%) |
| CIE-LAB | lab(52.46, -7.65, 52.53) |
| CIE-LCH | lch(52.46, 53.08, 98.28°) |
| OKLab | oklab(58.76% -0.0272 0.1134) |
| OKLCH | oklch(58.76% 0.117 103.5) |
| XYZ | xyz(18.0614, 20.5598, 3.8275) |
| Luminance | 0.2056 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.17
Baby Poop
#937C00
ΔE00 4.30
Hazel
#8E7618
ΔE00 5.27
Ugly Brown
#7D7103
ΔE00 5.36
Shit Green
#758000
ΔE00 6.12
Puke Brown
#947706
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#897F17 #172189
analogous
#894617 #897F17 #5A8917
triadic
#897F17 #17897F #7F1789
tetradic
#897F17 #178946 #172189 #89175A
square
#897F17 #178946 #172189 #89175A
split-complementary
#897F17 #175A89 #461789
monochromatic
#201E05 #554E0E #897F17 #BDB020 #DED03C
Accessibility & contrast
On white
4.11
#897F17 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#897F17 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #897F17
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##897F17 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##897F17 | 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)
#8F7F20
Tritanopia (blue-blind)
#94756C
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #897f17; /* rgb */ color: rgb(137, 127, 23); /* oklch */ color: oklch(58.8% 0.117 103.5);
Tailwind
colors: {
custom: {
50: '#afa35f',
500: '#897f17',
950: '#000000',
},
}SCSS
$custom: #897f17; $custom-light: #afa35f; $custom-dark: #000000;
JSON
{
"hex": "#897f17",
"rgb": {
"r": 137,
"g": 127,
"b": 23
},
"hsl": {
"h": 54.737,
"s": 71.25,
"l": 31.373
},
"oklch": {
"l": 0.5876,
"c": 0.11663,
"h": 103.5
},
"luminance": 0.20559
}Semantic roles & 50–950 ramp
primary
#897F17
secondary
#3F4ABD
accent
#4AEE3A
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#110F05
muted
#807F79