#897E20#897E20

#897E20 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.6% C 0.111 H 102.4°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#897E20
RGBrgb(137, 126, 32)
HSLhsl(54, 62%, 33%)
HSVhsv(54, 77%, 54%)
CMYKcmyk(0%, 8%, 76.6%, 46.3%)
CIE-LABlab(52.23, -6.74, 49.30)
CIE-LCHlch(52.23, 49.75, 97.78°)
OKLaboklab(58.59% -0.0238 0.1083)
OKLCHoklch(58.59% 0.111 102.4)
XYZxyz(18.0389, 20.3451, 4.3430)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897E20 #202B89
analogous
#894920 #897E20 #5F8920
triadic
#897E20 #20897E #7E2089
tetradic
#897E20 #208949 #202B89 #89205F
square
#897E20 #208949 #202B89 #89205F
split-complementary
#897E20 #205F89 #492089
monochromatic
#262309 #575014 #897E20 #BBAC2C #D6C74E

Accessibility & contrast

On white

4.14
#897E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#897E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897E20
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897E20#FFFFFF#000000##000000
##897E201.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0D
Deuteranopia (green-blind)
#8D7F27
Tritanopia (blue-blind)
#94756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897e20;
/* rgb */ color: rgb(137, 126, 32);
/* oklch */ color: oklch(58.6% 0.111 102.4);
Tailwind
colors: {
  custom: {
    50: '#afa363',
    500: '#897e20',
    950: '#000000',
  },
}
SCSS
$custom: #897e20;
$custom-light: #afa363;
$custom-dark: #000000;
JSON
{
  "hex": "#897e20",
  "rgb": {
    "r": 137,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 53.714,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58585,
    "c": 0.11092,
    "h": 102.4
  },
  "luminance": 0.20344
}

Semantic roles & 50–950 ramp

primary
#897E20
secondary
#4C58B9
accent
#54E543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897E20

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#897E20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva