#897F2F#897F2F

#897F2F is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.101 H 102.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#897F2F
RGBrgb(137, 127, 47)
HSLhsl(53, 49%, 36%)
HSVhsv(53, 66%, 54%)
CMYKcmyk(0%, 7.3%, 65.7%, 46.3%)
CIE-LABlab(52.62, -6.44, 43.43)
CIE-LCHlch(52.62, 43.91, 98.44°)
OKLaboklab(58.94% -0.0213 0.0987)
OKLCHoklch(58.94% 0.101 102.2)
XYZxyz(18.4197, 20.7031, 5.7146)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#897F2F #2F3989
analogous
#89522F #897F2F #66892F
triadic
#897F2F #2F897F #7F2F89
tetradic
#897F2F #2F8952 #2F3989 #892F66
square
#897F2F #2F8952 #2F3989 #892F66
split-complementary
#897F2F #2F6689 #522F89
monochromatic
#2E2B10 #5B551F #897F2F #B7A93F #CBC067

Accessibility & contrast

On white

4.09
#897F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#897F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #897F2F
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##897F2F#FFFFFF#000000##000000
##897F2F1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B25
Deuteranopia (green-blind)
#8D8033
Tritanopia (blue-blind)
#93766E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #897f2f;
/* rgb */ color: rgb(137, 127, 47);
/* oklch */ color: oklch(58.9% 0.101 102.2);
Tailwind
colors: {
  custom: {
    50: '#aea36c',
    500: '#897f2f',
    950: '#000000',
  },
}
SCSS
$custom: #897f2f;
$custom-light: #aea36c;
$custom-dark: #000000;
JSON
{
  "hex": "#897f2f",
  "rgb": {
    "r": 137,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 53.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58937,
    "c": 0.10095,
    "h": 102.2
  },
  "luminance": 0.20702
}

Semantic roles & 50–950 ramp

primary
#897F2F
secondary
#626BB2
accent
#5FD84F
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #897F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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