#897C1F#897C1F

#897C1F is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 58.1% C 0.110 H 101.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#897C1F
RGBrgb(137, 124, 31)
HSLhsl(53, 63%, 33%)
HSVhsv(53, 77%, 54%)
CMYKcmyk(0%, 9.5%, 77.4%, 46.3%)
CIE-LABlab(51.65, -5.67, 49.12)
CIE-LCHlch(51.65, 49.45, 96.59°)
OKLaboklab(58.13% -0.0209 0.1078)
OKLCHoklch(58.13% 0.11 101)
XYZxyz(17.7723, 19.8334, 4.1882)
Luminance0.1983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897C1F #1F2C89
analogous
#89471F #897C1F #61891F
triadic
#897C1F #1F897C #7C1F89
tetradic
#897C1F #1F8947 #1F2C89 #891F61
square
#897C1F #1F8947 #1F2C89 #891F61
split-complementary
#897C1F #1F6189 #471F89
monochromatic
#252208 #574F14 #897C1F #BBA92A #D6C54C

Accessibility & contrast

On white

4.23
#897C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#897C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897C1F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897C1F#FFFFFF#000000##000000
##897C1F1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#8C7D26
Tritanopia (blue-blind)
#94736A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #897c1f;
/* rgb */ color: rgb(137, 124, 31);
/* oklch */ color: oklch(58.1% 0.110 101.0);
Tailwind
colors: {
  custom: {
    50: '#afa162',
    500: '#897c1f',
    950: '#000000',
  },
}
SCSS
$custom: #897c1f;
$custom-light: #afa162;
$custom-dark: #000000;
JSON
{
  "hex": "#897c1f",
  "rgb": {
    "r": 137,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 52.642,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58125,
    "c": 0.10978,
    "h": 101
  },
  "luminance": 0.19833
}

Semantic roles & 50–950 ramp

primary
#897C1F
secondary
#4B58B9
accent
#56E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #897C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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