#897A1F#897A1F

#897A1F is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.7% C 0.108 H 99.5°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#897A1F
RGBrgb(137, 122, 31)
HSLhsl(52, 63%, 33%)
HSVhsv(52, 77%, 54%)
CMYKcmyk(0%, 10.9%, 77.4%, 46.3%)
CIE-LABlab(51.08, -4.56, 48.59)
CIE-LCHlch(51.08, 48.80, 95.36°)
OKLaboklab(57.67% -0.0178 0.1066)
OKLCHoklch(57.67% 0.108 99.5)
XYZxyz(17.5242, 19.3372, 4.1055)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897A1F #1F2E89
analogous
#89451F #897A1F #63891F
triadic
#897A1F #1F897A #7A1F89
tetradic
#897A1F #1F8945 #1F2E89 #891F63
square
#897A1F #1F8945 #1F2E89 #891F63
split-complementary
#897A1F #1F6389 #451F89
monochromatic
#252108 #574E14 #897A1F #BBA62A #D6C34C

Accessibility & contrast

On white

4.31
#897A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#897A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897A1F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897A1F#FFFFFF#000000##000000
##897A1F1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#86770D
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#947069
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #897a1f;
/* rgb */ color: rgb(137, 122, 31);
/* oklch */ color: oklch(57.7% 0.108 99.5);
Tailwind
colors: {
  custom: {
    50: '#afa062',
    500: '#897a1f',
    950: '#000000',
  },
}
SCSS
$custom: #897a1f;
$custom-light: #afa062;
$custom-dark: #000000;
JSON
{
  "hex": "#897a1f",
  "rgb": {
    "r": 137,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 51.509,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57673,
    "c": 0.10809,
    "h": 99.5
  },
  "luminance": 0.19336
}

Semantic roles & 50–950 ramp

primary
#897A1F
secondary
#4B5AB9
accent
#59E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #897A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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