#5B8D15#5B8D15

#5B8D15 is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.6% C 0.152 H 130.9°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5B8D15
RGBrgb(91, 141, 21)
HSLhsl(85, 74%, 32%)
HSVhsv(85, 85%, 55%)
CMYKcmyk(35.5%, 0%, 85.1%, 44.7%)
CIE-LABlab(53.31, -34.84, 52.51)
CIE-LCHlch(53.31, 63.02, 123.56°)
OKLaboklab(58.58% -0.0993 0.1148)
OKLCHoklch(58.58% 0.152 130.9)
XYZxyz(13.9745, 21.3275, 4.0896)
Luminance0.2133 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8D15 #47158D
analogous
#8D8315 #5B8D15 #1F8D15
triadic
#5B8D15 #155B8D #8D155B
tetradic
#5B8D15 #158D83 #47158D #8D151F
square
#5B8D15 #158D83 #47158D #8D151F
split-complementary
#5B8D15 #151F8D #83158D
monochromatic
#162205 #39580D #5B8D15 #7DC21D #9CE23B

Accessibility & contrast

On white

3.99
#5B8D15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5B8D15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8D15
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8D15#FFFFFF#000000##000000
##5B8D151.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8D7E24
Tritanopia (blue-blind)
#5D8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5b8d15;
/* rgb */ color: rgb(91, 141, 21);
/* oklch */ color: oklch(58.6% 0.152 130.9);
Tailwind
colors: {
  custom: {
    50: '#8eae60',
    500: '#5b8d15',
    950: '#000000',
  },
}
SCSS
$custom: #5b8d15;
$custom-light: #8eae60;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8d15",
  "rgb": {
    "r": 91,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 85,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58579,
    "c": 0.15176,
    "h": 130.9
  },
  "luminance": 0.21328
}

Semantic roles & 50–950 ramp

primary
#5B8D15
secondary
#743DC1
accent
#37F184
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D1005
muted
#7E7F79

Preview Lab

Preview with #5B8D15

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

Preview Lab → · Contrast checker → · Palette generator →

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