#5B8415#5B8415

#5B8415 is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.2% C 0.140 H 128.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5B8415
RGBrgb(91, 132, 21)
HSLhsl(82, 73%, 30%)
HSVhsv(82, 84%, 52%)
CMYKcmyk(31.1%, 0%, 84.1%, 48.2%)
CIE-LABlab(50.43, -30.71, 49.96)
CIE-LCHlch(50.43, 58.64, 121.58°)
OKLaboklab(56.23% -0.0882 0.1093)
OKLCHoklch(56.23% 0.14 128.9)
XYZxyz(12.7010, 18.7805, 3.6651)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8415 #3E1584
analogous
#847515 #5B8415 #248415
triadic
#5B8415 #155B84 #84155B
tetradic
#5B8415 #158475 #3E1584 #841524
square
#5B8415 #158475 #3E1584 #841524
split-complementary
#5B8415 #152484 #751584
monochromatic
#121A04 #374F0D #5B8415 #7FB91D #A0DF35

Accessibility & contrast

On white

4.42
#5B8415 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5B8415 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8415
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8415#FFFFFF#000000##000000
##5B84151.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#5E7E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b8415;
/* rgb */ color: rgb(91, 132, 21);
/* oklch */ color: oklch(56.2% 0.140 128.9);
Tailwind
colors: {
  custom: {
    50: '#8ea85e',
    500: '#5b8415',
    950: '#000000',
  },
}
SCSS
$custom: #5b8415;
$custom-light: #8ea85e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8415",
  "rgb": {
    "r": 91,
    "g": 132,
    "b": 21
  },
  "hsl": {
    "h": 82.162,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.56233,
    "c": 0.14046,
    "h": 128.9
  },
  "luminance": 0.18781
}

Semantic roles & 50–950 ramp

primary
#5B8415
secondary
#6A3CB9
accent
#39EF7C
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5B8415

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

Preview Lab → · Contrast checker → · Palette generator →

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