#897F20#897F20
#897F20 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.112 H 103.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #897F20 |
|---|---|
| RGB | rgb(137, 127, 32) |
| HSL | hsl(54, 62%, 33%) |
| HSV | hsv(54, 77%, 54%) |
| CMYK | cmyk(0%, 7.3%, 76.6%, 46.3%) |
| CIE-LAB | lab(52.51, -7.29, 49.56) |
| CIE-LCH | lch(52.51, 50.10, 98.37°) |
| OKLab | oklab(58.81% -0.0254 0.1089) |
| OKLCH | oklch(58.81% 0.112 103.1) |
| XYZ | xyz(18.1674, 20.6022, 4.3859) |
| Luminance | 0.2060 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.60
Baby Poop
#937C00
ΔE00 4.65
Hazel
#8E7618
ΔE00 5.20
Ugly Brown
#7D7103
ΔE00 5.48
Shit Green
#758000
ΔE00 6.27
Puke Brown
#947706
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#897F20 #202A89
analogous
#894A20 #897F20 #5E8920
triadic
#897F20 #20897F #7F2089
tetradic
#897F20 #20894A #202A89 #89205E
square
#897F20 #20894A #202A89 #89205E
split-complementary
#897F20 #205E89 #4A2089
monochromatic
#262309 #575114 #897F20 #BBAD2C #D6C94E
Accessibility & contrast
On white
4.10
#897F20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#897F20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #897F20
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##897F20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##897F20 | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B0D
Deuteranopia (green-blind)
#8E7F27
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #897f20; /* rgb */ color: rgb(137, 127, 32); /* oklch */ color: oklch(58.8% 0.112 103.1);
Tailwind
colors: {
custom: {
50: '#afa363',
500: '#897f20',
950: '#000000',
},
}SCSS
$custom: #897f20; $custom-light: #afa363; $custom-dark: #000000;
JSON
{
"hex": "#897f20",
"rgb": {
"r": 137,
"g": 127,
"b": 32
},
"hsl": {
"h": 54.286,
"s": 62.13,
"l": 33.137
},
"oklch": {
"l": 0.58813,
"c": 0.11182,
"h": 103.1
},
"luminance": 0.20601
}Semantic roles & 50–950 ramp
primary
#897F20
secondary
#4C57B9
accent
#52E543
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A