#897F1F#897F1F

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

Color values

HEX#897F1F
RGBrgb(137, 127, 31)
HSLhsl(54, 63%, 33%)
HSVhsv(54, 77%, 54%)
CMYKcmyk(0%, 7.3%, 77.4%, 46.3%)
CIE-LABlab(52.51, -7.33, 49.92)
CIE-LCHlch(52.51, 50.46, 98.36°)
OKLaboklab(58.81% -0.0256 0.1095)
OKLCHoklch(58.81% 0.112 103.2)
XYZxyz(18.1540, 20.5968, 4.3154)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897F1F #1F2989
analogous
#894A1F #897F1F #5E891F
triadic
#897F1F #1F897F #7F1F89
tetradic
#897F1F #1F894A #1F2989 #891F5E
square
#897F1F #1F894A #1F2989 #891F5E
split-complementary
#897F1F #1F5E89 #4A1F89
monochromatic
#252208 #575114 #897F1F #BBAD2A #D6C94C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##897F1F#FFFFFF#000000##000000
##897F1F1.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)
#8B7B0B
Deuteranopia (green-blind)
#8E7F26
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897f1f;
/* rgb */ color: rgb(137, 127, 31);
/* oklch */ color: oklch(58.8% 0.112 103.2);
Tailwind
colors: {
  custom: {
    50: '#afa363',
    500: '#897f1f',
    950: '#000000',
  },
}
SCSS
$custom: #897f1f;
$custom-light: #afa363;
$custom-dark: #000000;
JSON
{
  "hex": "#897f1f",
  "rgb": {
    "r": 137,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 54.34,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58806,
    "c": 0.11242,
    "h": 103.2
  },
  "luminance": 0.20596
}

Semantic roles & 50–950 ramp

primary
#897F1F
secondary
#4B55B9
accent
#51E642
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #897F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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