#89871F#89871F

#89871F is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.6% C 0.120 H 108.4°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#89871F
RGBrgb(137, 135, 31)
HSLhsl(59, 63%, 33%)
HSVhsv(59, 77%, 54%)
CMYKcmyk(0%, 1.5%, 77.4%, 46.3%)
CIE-LABlab(54.81, -11.69, 52.06)
CIE-LCHlch(54.81, 53.36, 102.66°)
OKLaboklab(60.64% -0.0378 0.114)
OKLCHoklch(60.64% 0.12 108.4)
XYZxyz(19.2286, 22.7459, 4.6736)
Luminance0.2275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#89871F #1F2189
analogous
#89521F #89871F #56891F
triadic
#89871F #1F8987 #871F89
tetradic
#89871F #1F8952 #1F2189 #891F56
square
#89871F #1F8952 #1F2189 #891F56
split-complementary
#89871F #1F5689 #521F89
monochromatic
#252508 #575614 #89871F #BBB82A #D6D44C

Accessibility & contrast

On white

3.78
#89871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#89871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #89871F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##89871F#FFFFFF#000000##000000
##89871F1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938106
Deuteranopia (green-blind)
#948527
Tritanopia (blue-blind)
#937E73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #89871f;
/* rgb */ color: rgb(137, 135, 31);
/* oklch */ color: oklch(60.6% 0.120 108.4);
Tailwind
colors: {
  custom: {
    50: '#afa964',
    500: '#89871f',
    950: '#000000',
  },
}
SCSS
$custom: #89871f;
$custom-light: #afa964;
$custom-dark: #000000;
JSON
{
  "hex": "#89871f",
  "rgb": {
    "r": 137,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 58.868,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60642,
    "c": 0.12012,
    "h": 108.4
  },
  "luminance": 0.22745
}

Semantic roles & 50–950 ramp

primary
#89871F
secondary
#4B4DB9
accent
#45E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #89871F

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

Preview Lab → · Contrast checker → · Palette generator →

#89871F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva