#897F21#897F21
#897F21 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.111 H 103.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #897F21 |
|---|---|
| RGB | rgb(137, 127, 33) |
| HSL | hsl(54, 61%, 33%) |
| HSV | hsv(54, 76%, 54%) |
| CMYK | cmyk(0%, 7.3%, 75.9%, 46.3%) |
| CIE-LAB | lab(52.52, -7.24, 49.20) |
| CIE-LCH | lch(52.52, 49.73, 98.37°) |
| OKLab | oklab(58.82% -0.0252 0.1083) |
| OKLCH | oklch(58.82% 0.111 103.1) |
| XYZ | xyz(18.1812, 20.6077, 4.4585) |
| Luminance | 0.2061 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.66
Baby Poop
#937C00
ΔE00 4.70
Hazel
#8E7618
ΔE00 5.20
Ugly Brown
#7D7103
ΔE00 5.50
Shit Green
#758000
ΔE00 6.30
Drab
#828344
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#897F21 #212B89
analogous
#894B21 #897F21 #5F8921
triadic
#897F21 #21897F #7F2189
tetradic
#897F21 #21894B #212B89 #89215F
square
#897F21 #21894B #212B89 #89215F
split-complementary
#897F21 #215F89 #4B2189
monochromatic
#262409 #585115 #897F21 #BAAD2D #D5C850
Accessibility & contrast
On white
4.10
#897F21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#897F21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #897F21
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##897F21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##897F21 | 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)
#8B7B0F
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #897f21; /* rgb */ color: rgb(137, 127, 33); /* oklch */ color: oklch(58.8% 0.111 103.1);
Tailwind
colors: {
custom: {
50: '#afa364',
500: '#897f21',
950: '#000000',
},
}SCSS
$custom: #897f21; $custom-light: #afa364; $custom-dark: #000000;
JSON
{
"hex": "#897f21",
"rgb": {
"r": 137,
"g": 127,
"b": 33
},
"hsl": {
"h": 54.231,
"s": 61.176,
"l": 33.333
},
"oklch": {
"l": 0.58819,
"c": 0.1112,
"h": 103.1
},
"luminance": 0.20607
}Semantic roles & 50–950 ramp
primary
#897F21
secondary
#4E58B8
accent
#53E444
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A