#897F22#897F22
#897F22 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.111 H 103.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #897F22 |
|---|---|
| RGB | rgb(137, 127, 34) |
| HSL | hsl(54, 60%, 34%) |
| HSV | hsv(54, 75%, 54%) |
| CMYK | cmyk(0%, 7.3%, 75.2%, 46.3%) |
| CIE-LAB | lab(52.52, -7.19, 48.83) |
| CIE-LCH | lch(52.52, 49.35, 98.38°) |
| OKLab | oklab(58.83% -0.0249 0.1077) |
| OKLCH | oklch(58.83% 0.111 103) |
| XYZ | xyz(18.1954, 20.6134, 4.5334) |
| Luminance | 0.2061 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.74
Baby Poop
#937C00
ΔE00 4.75
Hazel
#8E7618
ΔE00 5.21
Ugly Brown
#7D7103
ΔE00 5.53
Shit Green
#758000
ΔE00 6.34
Drab
#828344
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#897F22 #222C89
analogous
#894B22 #897F22 #5F8922
triadic
#897F22 #22897F #7F2289
tetradic
#897F22 #22894B #222C89 #89225F
square
#897F22 #22894B #222C89 #89225F
split-complementary
#897F22 #225F89 #4B2289
monochromatic
#27240A #585216 #897F22 #BAAC2E #D4C751
Accessibility & contrast
On white
4.10
#897F22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#897F22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #897F22
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##897F22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##897F22 | 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)
#8B7B11
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #897f22; /* rgb */ color: rgb(137, 127, 34); /* oklch */ color: oklch(58.8% 0.111 103.0);
Tailwind
colors: {
custom: {
50: '#afa364',
500: '#897f22',
950: '#000000',
},
}SCSS
$custom: #897f22; $custom-light: #afa364; $custom-dark: #000000;
JSON
{
"hex": "#897f22",
"rgb": {
"r": 137,
"g": 127,
"b": 34
},
"hsl": {
"h": 54.175,
"s": 60.234,
"l": 33.529
},
"oklch": {
"l": 0.58826,
"c": 0.11057,
"h": 103
},
"luminance": 0.20613
}Semantic roles & 50–950 ramp
primary
#897F22
secondary
#4F59B8
accent
#54E344
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A