#5B9540#5B9540

#5B9540 is a mid, vivid green. Relative luminance 0.241; OKLCH L 61.0% C 0.133 H 136.8°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5B9540
RGBrgb(91, 149, 64)
HSLhsl(101, 40%, 42%)
HSVhsv(101, 57%, 58%)
CMYKcmyk(38.9%, 0%, 57%, 41.6%)
CIE-LABlab(56.18, -35.10, 38.44)
CIE-LCHlch(56.18, 52.06, 132.40°)
OKLaboklab(61.03% -0.0968 0.0909)
OKLCHoklch(61.03% 0.133 136.8)
XYZxyz(15.9868, 24.0884, 8.6567)
Luminance0.2409 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9540 #7A4095
analogous
#869540 #5B9540 #409550
triadic
#5B9540 #405B95 #95405B
tetradic
#5B9540 #408695 #7A4095 #955040
square
#5B9540 #408695 #7A4095 #955040
split-complementary
#5B9540 #504095 #954086
monochromatic
#273F1B #416A2E #5B9540 #78B85A #9BCB85

Accessibility & contrast

On white

3.61
#5B9540 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#5B9540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9540
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9540#FFFFFF#000000##000000
##5B95401.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A38
Deuteranopia (green-blind)
#928546
Tritanopia (blue-blind)
#599082
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5b9540;
/* rgb */ color: rgb(91, 149, 64);
/* oklch */ color: oklch(61.0% 0.133 136.8);
Tailwind
colors: {
  custom: {
    50: '#8db477',
    500: '#5b9540',
    950: '#000000',
  },
}
SCSS
$custom: #5b9540;
$custom-light: #8db477;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9540",
  "rgb": {
    "r": 91,
    "g": 149,
    "b": 64
  },
  "hsl": {
    "h": 100.941,
    "s": 39.906,
    "l": 41.765
  },
  "oklch": {
    "l": 0.61027,
    "c": 0.13276,
    "h": 136.8
  },
  "luminance": 0.24089
}

Semantic roles & 50–950 ramp

primary
#5B9540
secondary
#A37CB5
accent
#58D0AA
background
#F8FBF7
surface
#F0F6ED
border
#CBD0C8
text
#0C1109
muted
#7D807B

Preview Lab

Preview with #5B9540

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

Preview Lab → · Contrast checker → · Palette generator →

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