#897D22#897D22

#897D22 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.4% C 0.109 H 101.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#897D22
RGBrgb(137, 125, 34)
HSLhsl(53, 60%, 34%)
HSVhsv(53, 75%, 54%)
CMYKcmyk(0%, 8.8%, 75.2%, 46.3%)
CIE-LABlab(51.95, -6.09, 48.28)
CIE-LCHlch(51.95, 48.66, 97.19°)
OKLaboklab(58.37% -0.0218 0.1066)
OKLCHoklch(58.37% 0.109 101.6)
XYZxyz(17.9397, 20.1019, 4.4482)
Luminance0.2010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897D22 #222E89
analogous
#894922 #897D22 #618922
triadic
#897D22 #22897D #7D2289
tetradic
#897D22 #228949 #222E89 #892261
square
#897D22 #228949 #222E89 #892261
split-complementary
#897D22 #226189 #492289
monochromatic
#27240A #585016 #897D22 #BAAA2E #D4C551

Accessibility & contrast

On white

4.18
#897D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#897D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897D22
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897D22#FFFFFF#000000##000000
##897D221.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#897912
Deuteranopia (green-blind)
#8D7E28
Tritanopia (blue-blind)
#94746B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #897d22;
/* rgb */ color: rgb(137, 125, 34);
/* oklch */ color: oklch(58.4% 0.109 101.6);
Tailwind
colors: {
  custom: {
    50: '#afa264',
    500: '#897d22',
    950: '#000000',
  },
}
SCSS
$custom: #897d22;
$custom-light: #afa264;
$custom-dark: #000000;
JSON
{
  "hex": "#897d22",
  "rgb": {
    "r": 137,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 53.01,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58372,
    "c": 0.10878,
    "h": 101.6
  },
  "luminance": 0.20101
}

Semantic roles & 50–950 ramp

primary
#897D22
secondary
#4F5BB8
accent
#57E344
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897D22

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

Preview Lab → · Contrast checker → · Palette generator →

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