#157F31#157F31

#157F31 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.147 H 147.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#157F31
RGBrgb(21, 127, 49)
HSLhsl(136, 72%, 29%)
HSVhsv(136, 83%, 50%)
CMYKcmyk(83.5%, 0%, 61.4%, 50.2%)
CIE-LABlab(46.39, -45.75, 33.80)
CIE-LCHlch(46.39, 56.88, 143.54°)
OKLaboklab(52.27% -0.123 0.0799)
OKLCHoklch(52.27% 0.147 147)
XYZxyz(8.4524, 15.5589, 5.4628)
Luminance0.1556 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F31 #7F1563
analogous
#2E7F15 #157F31 #157F66
triadic
#157F31 #31157F #7F3115
tetradic
#157F31 #152E7F #7F1563 #7F6615
square
#157F31 #152E7F #7F1563 #7F6615
split-complementary
#157F31 #66157F #7F152E
monochromatic
#041A0A #0C4A1D #157F31 #1EB445 #31DD5F

Accessibility & contrast

On white

5.11
#157F31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#157F31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157F31
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157F31#FFFFFF#000000##FFFFFF
##157F311.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817329
Deuteranopia (green-blind)
#756B37
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #157f31;
/* rgb */ color: rgb(21, 127, 49);
/* oklch */ color: oklch(52.3% 0.147 147.0);
Tailwind
colors: {
  custom: {
    50: '#68a56c',
    500: '#157f31',
    950: '#000000',
  },
}
SCSS
$custom: #157f31;
$custom-light: #68a56c;
$custom-dark: #000000;
JSON
{
  "hex": "#157f31",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 49
  },
  "hsl": {
    "h": 135.849,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52268,
    "c": 0.14665,
    "h": 147
  },
  "luminance": 0.1556
}

Semantic roles & 50–950 ramp

primary
#157F31
secondary
#B43C94
accent
#39BFEE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #157F31

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

Preview Lab → · Contrast checker → · Palette generator →

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