#897F20#897F20

#897F20 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.112 H 103.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#897F20
RGBrgb(137, 127, 32)
HSLhsl(54, 62%, 33%)
HSVhsv(54, 77%, 54%)
CMYKcmyk(0%, 7.3%, 76.6%, 46.3%)
CIE-LABlab(52.51, -7.29, 49.56)
CIE-LCHlch(52.51, 50.10, 98.37°)
OKLaboklab(58.81% -0.0254 0.1089)
OKLCHoklch(58.81% 0.112 103.1)
XYZxyz(18.1674, 20.6022, 4.3859)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897F20 #202A89
analogous
#894A20 #897F20 #5E8920
triadic
#897F20 #20897F #7F2089
tetradic
#897F20 #20894A #202A89 #89205E
square
#897F20 #20894A #202A89 #89205E
split-complementary
#897F20 #205E89 #4A2089
monochromatic
#262309 #575114 #897F20 #BBAD2C #D6C94E

Accessibility & contrast

On white

4.10
#897F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#897F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897F20
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897F20#FFFFFF#000000##000000
##897F201.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0D
Deuteranopia (green-blind)
#8E7F27
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897f20;
/* rgb */ color: rgb(137, 127, 32);
/* oklch */ color: oklch(58.8% 0.112 103.1);
Tailwind
colors: {
  custom: {
    50: '#afa363',
    500: '#897f20',
    950: '#000000',
  },
}
SCSS
$custom: #897f20;
$custom-light: #afa363;
$custom-dark: #000000;
JSON
{
  "hex": "#897f20",
  "rgb": {
    "r": 137,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 54.286,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58813,
    "c": 0.11182,
    "h": 103.1
  },
  "luminance": 0.20601
}

Semantic roles & 50–950 ramp

primary
#897F20
secondary
#4C57B9
accent
#52E543
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #897F20

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

Preview Lab → · Contrast checker → · Palette generator →

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