#897D21#897D21

#897D21 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#897D21
RGBrgb(137, 125, 33)
HSLhsl(53, 61%, 33%)
HSVhsv(53, 76%, 54%)
CMYKcmyk(0%, 8.8%, 75.9%, 46.3%)
CIE-LABlab(51.95, -6.13, 48.65)
CIE-LCHlch(51.95, 49.04, 97.19°)
OKLaboklab(58.37% -0.022 0.1072)
OKLCHoklch(58.37% 0.109 101.6)
XYZxyz(17.9255, 20.0962, 4.3733)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897D21 #212D89
analogous
#894921 #897D21 #618921
triadic
#897D21 #21897D #7D2189
tetradic
#897D21 #218949 #212D89 #892161
square
#897D21 #218949 #212D89 #892161
split-complementary
#897D21 #216189 #492189
monochromatic
#262309 #585015 #897D21 #BAAA2D #D5C550

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##897D21#FFFFFF#000000##000000
##897D211.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)
#897910
Deuteranopia (green-blind)
#8D7E27
Tritanopia (blue-blind)
#94746B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #897d21;
/* rgb */ color: rgb(137, 125, 33);
/* oklch */ color: oklch(58.4% 0.109 101.6);
Tailwind
colors: {
  custom: {
    50: '#afa264',
    500: '#897d21',
    950: '#000000',
  },
}
SCSS
$custom: #897d21;
$custom-light: #afa264;
$custom-dark: #000000;
JSON
{
  "hex": "#897d21",
  "rgb": {
    "r": 137,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 53.077,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58365,
    "c": 0.10941,
    "h": 101.6
  },
  "luminance": 0.20095
}

Semantic roles & 50–950 ramp

primary
#897D21
secondary
#4E5AB8
accent
#56E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897D21

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

Preview Lab → · Contrast checker → · Palette generator →

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