#897D18#897D18
#897D18 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.3% C 0.114 H 102.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #897D18 |
|---|---|
| RGB | rgb(137, 125, 24) |
| HSL | hsl(54, 70%, 32%) |
| HSV | hsv(54, 82%, 54%) |
| CMYK | cmyk(0%, 8.8%, 82.5%, 46.3%) |
| CIE-LAB | lab(51.90, -6.51, 51.73) |
| CIE-LCH | lch(51.90, 52.13, 97.17°) |
| OKLab | oklab(58.31% -0.024 0.1119) |
| OKLCH | oklch(58.31% 0.114 102.1) |
| XYZ | xyz(17.8159, 20.0524, 3.7960) |
| Luminance | 0.2005 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.81
Olive
#808000
ΔE00 3.83
Hazel
#8E7618
ΔE00 4.41
Ugly Brown
#7D7103
ΔE00 4.71
Puke Brown
#947706
ΔE00 5.61
Poo
#8F7303
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#897D18 #182489
analogous
#894518 #897D18 #5D8918
triadic
#897D18 #18897D #7D1889
tetradic
#897D18 #188945 #182489 #89185D
square
#897D18 #188945 #182489 #89185D
split-complementary
#897D18 #185D89 #451889
monochromatic
#211E06 #554D0F #897D18 #BDAD21 #DDCC3E
Accessibility & contrast
On white
4.19
#897D18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#897D18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #897D18
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##897D18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##897D18 | 1.00 | 4.19 | 5.01 | 5.01 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#8D7E20
Tritanopia (blue-blind)
#94736B
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #897d18; /* rgb */ color: rgb(137, 125, 24); /* oklch */ color: oklch(58.3% 0.114 102.1);
Tailwind
colors: {
custom: {
50: '#afa25f',
500: '#897d18',
950: '#000000',
},
}SCSS
$custom: #897d18; $custom-light: #afa25f; $custom-dark: #000000;
JSON
{
"hex": "#897d18",
"rgb": {
"r": 137,
"g": 125,
"b": 24
},
"hsl": {
"h": 53.628,
"s": 70.186,
"l": 31.569
},
"oklch": {
"l": 0.5831,
"c": 0.11443,
"h": 102.1
},
"luminance": 0.20052
}Semantic roles & 50–950 ramp
primary
#897D18
secondary
#404DBD
accent
#4EED3B
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110F05
muted
#807E79