#897F1F#897F1F
#897F1F is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.112 H 103.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #897F1F |
|---|---|
| RGB | rgb(137, 127, 31) |
| HSL | hsl(54, 63%, 33%) |
| HSV | hsv(54, 77%, 54%) |
| CMYK | cmyk(0%, 7.3%, 77.4%, 46.3%) |
| CIE-LAB | lab(52.51, -7.33, 49.92) |
| CIE-LCH | lch(52.51, 50.46, 98.36°) |
| OKLab | oklab(58.81% -0.0256 0.1095) |
| OKLCH | oklch(58.81% 0.112 103.2) |
| XYZ | xyz(18.1540, 20.5968, 4.3154) |
| Luminance | 0.2060 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.53
Baby Poop
#937C00
ΔE00 4.60
Hazel
#8E7618
ΔE00 5.20
Ugly Brown
#7D7103
ΔE00 5.45
Shit Green
#758000
ΔE00 6.25
Puke Brown
#947706
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#897F1F #1F2989
analogous
#894A1F #897F1F #5E891F
triadic
#897F1F #1F897F #7F1F89
tetradic
#897F1F #1F894A #1F2989 #891F5E
square
#897F1F #1F894A #1F2989 #891F5E
split-complementary
#897F1F #1F5E89 #4A1F89
monochromatic
#252208 #575114 #897F1F #BBAD2A #D6C94C
Accessibility & contrast
On white
4.10
#897F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#897F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #897F1F
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##897F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##897F1F | 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)
#8B7B0B
Deuteranopia (green-blind)
#8E7F26
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #897f1f; /* rgb */ color: rgb(137, 127, 31); /* oklch */ color: oklch(58.8% 0.112 103.2);
Tailwind
colors: {
custom: {
50: '#afa363',
500: '#897f1f',
950: '#000000',
},
}SCSS
$custom: #897f1f; $custom-light: #afa363; $custom-dark: #000000;
JSON
{
"hex": "#897f1f",
"rgb": {
"r": 137,
"g": 127,
"b": 31
},
"hsl": {
"h": 54.34,
"s": 63.095,
"l": 32.941
},
"oklch": {
"l": 0.58806,
"c": 0.11242,
"h": 103.2
},
"luminance": 0.20596
}Semantic roles & 50–950 ramp
primary
#897F1F
secondary
#4B55B9
accent
#51E642
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A