#897D1F#897D1F

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

Color values

HEX#897D1F
RGBrgb(137, 125, 31)
HSLhsl(53, 63%, 33%)
HSVhsv(53, 77%, 54%)
CMYKcmyk(0%, 8.8%, 77.4%, 46.3%)
CIE-LABlab(51.93, -6.23, 49.39)
CIE-LCHlch(51.93, 49.78, 97.19°)
OKLaboklab(58.35% -0.0225 0.1083)
OKLCHoklch(58.35% 0.111 101.7)
XYZxyz(17.8983, 20.0853, 4.2301)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897D1F #1F2B89
analogous
#89481F #897D1F #60891F
triadic
#897D1F #1F897D #7D1F89
tetradic
#897D1F #1F8948 #1F2B89 #891F60
square
#897D1F #1F8948 #1F2B89 #891F60
split-complementary
#897D1F #1F6089 #481F89
monochromatic
#252208 #574F14 #897D1F #BBAB2A #D6C74C

Accessibility & contrast

On white

4.19
#897D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##897D1F#FFFFFF#000000##000000
##897D1F1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790C
Deuteranopia (green-blind)
#8D7E26
Tritanopia (blue-blind)
#94746B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #897d1f;
/* rgb */ color: rgb(137, 125, 31);
/* oklch */ color: oklch(58.4% 0.111 101.7);
Tailwind
colors: {
  custom: {
    50: '#afa263',
    500: '#897d1f',
    950: '#000000',
  },
}
SCSS
$custom: #897d1f;
$custom-light: #afa263;
$custom-dark: #000000;
JSON
{
  "hex": "#897d1f",
  "rgb": {
    "r": 137,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 53.208,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58351,
    "c": 0.11063,
    "h": 101.7
  },
  "luminance": 0.20085
}

Semantic roles & 50–950 ramp

primary
#897D1F
secondary
#4B57B9
accent
#54E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #897D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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