#5B8115#5B8115

#5B8115 is a mid, vivid yellow-green. Relative luminance 0.180; OKLCH L 55.5% C 0.137 H 128.1°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5B8115
RGBrgb(91, 129, 21)
HSLhsl(81, 72%, 29%)
HSVhsv(81, 84%, 51%)
CMYKcmyk(29.5%, 0%, 83.7%, 49.4%)
CIE-LABlab(49.47, -29.29, 49.10)
CIE-LCHlch(49.47, 57.17, 120.82°)
OKLaboklab(55.45% -0.0844 0.1075)
OKLCHoklch(55.45% 0.137 128.1)
XYZxyz(12.3000, 17.9785, 3.5315)
Luminance0.1798 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8115 #3B1581
analogous
#817115 #5B8115 #258115
triadic
#5B8115 #155B81 #81155B
tetradic
#5B8115 #158171 #3B1581 #811525
square
#5B8115 #158171 #3B1581 #811525
split-complementary
#5B8115 #152581 #711581
monochromatic
#131A04 #364C0C #5B8115 #80B61E #A2DE33

Accessibility & contrast

On white

4.57
#5B8115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#5B8115 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8115
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8115#FFFFFF#000000##000000
##5B81151.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#837521
Tritanopia (blue-blind)
#5E7B6E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5b8115;
/* rgb */ color: rgb(91, 129, 21);
/* oklch */ color: oklch(55.5% 0.137 128.1);
Tailwind
colors: {
  custom: {
    50: '#8da55e',
    500: '#5b8115',
    950: '#000000',
  },
}
SCSS
$custom: #5b8115;
$custom-light: #8da55e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8115",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 81.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.55453,
    "c": 0.13666,
    "h": 128.1
  },
  "luminance": 0.17979
}

Semantic roles & 50–950 ramp

primary
#5B8115
secondary
#673CB6
accent
#39EF79
background
#F9FAF5
surface
#F1F4E9
border
#CBCEC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5B8115

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

Preview Lab → · Contrast checker → · Palette generator →

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