#158F31#158F31

#158F31 is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.8% C 0.166 H 145.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#158F31
RGBrgb(21, 143, 49)
HSLhsl(134, 74%, 32%)
HSVhsv(134, 85%, 56%)
CMYKcmyk(85.3%, 0%, 65.7%, 43.9%)
CIE-LABlab(51.87, -51.21, 40.04)
CIE-LCHlch(51.87, 65.00, 141.98°)
OKLaboklab(56.82% -0.1378 0.0932)
OKLCHoklch(56.82% 0.166 145.9)
XYZxyz(10.6853, 20.0248, 6.2071)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#158F31 #8F1573
analogous
#368F15 #158F31 #158F6E
triadic
#158F31 #31158F #8F3115
tetradic
#158F31 #15368F #8F1573 #8F6E15
square
#158F31 #15368F #8F1573 #8F6E15
split-complementary
#158F31 #6E158F #8F1536
monochromatic
#05240C #0D5A1F #158F31 #1DC443 #3CE262

Accessibility & contrast

On white

4.20
#158F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#158F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #158F31
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##158F31#FFFFFF#000000##000000
##158F311.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#918126
Deuteranopia (green-blind)
#847839
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #158f31;
/* rgb */ color: rgb(21, 143, 49);
/* oklch */ color: oklch(56.8% 0.166 145.9);
Tailwind
colors: {
  custom: {
    50: '#6cb16d',
    500: '#158f31',
    950: '#000000',
  },
}
SCSS
$custom: #158f31;
$custom-light: #6cb16d;
$custom-dark: #000000;
JSON
{
  "hex": "#158f31",
  "rgb": {
    "r": 21,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 133.77,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56817,
    "c": 0.16638,
    "h": 145.9
  },
  "luminance": 0.20026
}

Semantic roles & 50–950 ramp

primary
#158F31
secondary
#C23EA4
accent
#37C6F1
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#081107
muted
#7B807A

Preview Lab

Preview with #158F31

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

Preview Lab → · Contrast checker → · Palette generator →

#158F31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva