#5B891F#5B891F

#5B891F is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.6% C 0.142 H 130.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5B891F
RGBrgb(91, 137, 31)
HSLhsl(86, 63%, 33%)
HSVhsv(86, 77%, 54%)
CMYKcmyk(33.6%, 0%, 77.4%, 46.3%)
CIE-LABlab(52.08, -32.52, 48.30)
CIE-LCHlch(52.08, 58.23, 123.95°)
OKLaboklab(57.59% -0.0924 0.1075)
OKLCHoklch(57.59% 0.142 130.7)
XYZxyz(13.5073, 20.2139, 4.4861)
Luminance0.2021 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B891F #4D1F89
analogous
#89821F #5B891F #26891F
triadic
#5B891F #1F5B89 #891F5B
tetradic
#5B891F #1F8982 #4D1F89 #891F26
square
#5B891F #1F8982 #4D1F89 #891F26
split-complementary
#5B891F #1F2689 #821F89
monochromatic
#192508 #3A5714 #5B891F #7CBB2A #9AD64C

Accessibility & contrast

On white

4.16
#5B891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5B891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B891F
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B891F#FFFFFF#000000##000000
##5B891F1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#897B2A
Tritanopia (blue-blind)
#5D8375
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b891f;
/* rgb */ color: rgb(91, 137, 31);
/* oklch */ color: oklch(57.6% 0.142 130.7);
Tailwind
colors: {
  custom: {
    50: '#8eab63',
    500: '#5b891f',
    950: '#000000',
  },
}
SCSS
$custom: #5b891f;
$custom-light: #8eab63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b891f",
  "rgb": {
    "r": 91,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 86.038,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57593,
    "c": 0.14173,
    "h": 130.7
  },
  "luminance": 0.20214
}

Semantic roles & 50–950 ramp

primary
#5B891F
secondary
#7B4BB9
accent
#42E689
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B891F

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

Preview Lab → · Contrast checker → · Palette generator →

#5B891F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva