#897F1D#897F1D

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

Color values

HEX#897F1D
RGBrgb(137, 127, 29)
HSLhsl(54, 65%, 33%)
HSVhsv(54, 79%, 54%)
CMYKcmyk(0%, 7.3%, 78.8%, 46.3%)
CIE-LABlab(52.49, -7.42, 50.62)
CIE-LCHlch(52.49, 51.16, 98.34°)
OKLaboklab(58.79% -0.0261 0.1105)
OKLCHoklch(58.79% 0.114 103.3)
XYZxyz(18.1285, 20.5866, 4.1809)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897F1D #1D2789
analogous
#89491D #897F1D #5D891D
triadic
#897F1D #1D897F #7F1D89
tetradic
#897F1D #1D8949 #1D2789 #891D5D
square
#897F1D #1D8949 #1D2789 #891D5D
split-complementary
#897F1D #1D5D89 #491D89
monochromatic
#242108 #565012 #897F1D #BCAE28 #D8CB48

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##897F1D#FFFFFF#000000##000000
##897F1D1.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)
#8B7B06
Deuteranopia (green-blind)
#8E7F24
Tritanopia (blue-blind)
#94766D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #897f1d;
/* rgb */ color: rgb(137, 127, 29);
/* oklch */ color: oklch(58.8% 0.114 103.3);
Tailwind
colors: {
  custom: {
    50: '#afa362',
    500: '#897f1d',
    950: '#000000',
  },
}
SCSS
$custom: #897f1d;
$custom-light: #afa362;
$custom-dark: #000000;
JSON
{
  "hex": "#897f1d",
  "rgb": {
    "r": 137,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 54.444,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58793,
    "c": 0.11357,
    "h": 103.3
  },
  "luminance": 0.20586
}

Semantic roles & 50–950 ramp

primary
#897F1D
secondary
#4752BA
accent
#4FE840
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #897F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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