#897B1F#897B1F

#897B1F is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.9% C 0.109 H 100.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#897B1F
RGBrgb(137, 123, 31)
HSLhsl(52, 63%, 33%)
HSVhsv(52, 77%, 54%)
CMYKcmyk(0%, 10.2%, 77.4%, 46.3%)
CIE-LABlab(51.36, -5.11, 48.86)
CIE-LCHlch(51.36, 49.12, 95.98°)
OKLaboklab(57.9% -0.0194 0.1072)
OKLCHoklch(57.9% 0.109 100.2)
XYZxyz(17.6477, 19.5841, 4.1466)
Luminance0.1958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897B1F #1F2D89
analogous
#89461F #897B1F #62891F
triadic
#897B1F #1F897B #7B1F89
tetradic
#897B1F #1F8946 #1F2D89 #891F62
square
#897B1F #1F8946 #1F2D89 #891F62
split-complementary
#897B1F #1F6289 #461F89
monochromatic
#252108 #574E14 #897B1F #BBA82A #D6C44C

Accessibility & contrast

On white

4.27
#897B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#897B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897B1F
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897B1F#FFFFFF#000000##000000
##897B1F1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#8B7D25
Tritanopia (blue-blind)
#947269
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #897b1f;
/* rgb */ color: rgb(137, 123, 31);
/* oklch */ color: oklch(57.9% 0.109 100.2);
Tailwind
colors: {
  custom: {
    50: '#afa062',
    500: '#897b1f',
    950: '#000000',
  },
}
SCSS
$custom: #897b1f;
$custom-light: #afa062;
$custom-dark: #000000;
JSON
{
  "hex": "#897b1f",
  "rgb": {
    "r": 137,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 52.075,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57899,
    "c": 0.10893,
    "h": 100.2
  },
  "luminance": 0.19583
}

Semantic roles & 50–950 ramp

primary
#897B1F
secondary
#4B59B9
accent
#57E642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #897B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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