#157A31#157A31

#157A31 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.8% C 0.140 H 147.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#157A31
RGBrgb(21, 122, 49)
HSLhsl(137, 71%, 28%)
HSVhsv(137, 83%, 48%)
CMYKcmyk(82.8%, 0%, 59.8%, 52.2%)
CIE-LABlab(44.66, -43.97, 31.78)
CIE-LCHlch(44.66, 54.25, 144.14°)
OKLaboklab(50.83% -0.1182 0.0755)
OKLCHoklch(50.83% 0.14 147.4)
XYZxyz(7.8226, 14.2993, 5.2529)
Luminance0.1430 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157A31 #7A155E
analogous
#2B7A15 #157A31 #157A63
triadic
#157A31 #31157A #7A3115
tetradic
#157A31 #152B7A #7A155E #7A6315
square
#157A31 #152B7A #7A155E #7A6315
split-complementary
#157A31 #63157A #7A152B
monochromatic
#041A0A #0C461C #157A31 #1EAE46 #2EDB5E

Accessibility & contrast

On white

5.44
#157A31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#157A31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157A31
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157A31#FFFFFF#000000##FFFFFF
##157A311.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6E2A
Deuteranopia (green-blind)
#706737
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #157a31;
/* rgb */ color: rgb(21, 122, 49);
/* oklch */ color: oklch(50.8% 0.140 147.4);
Tailwind
colors: {
  custom: {
    50: '#66a16b',
    500: '#157a31',
    950: '#000000',
  },
}
SCSS
$custom: #157a31;
$custom-light: #66a16b;
$custom-dark: #000000;
JSON
{
  "hex": "#157a31",
  "rgb": {
    "r": 21,
    "g": 122,
    "b": 49
  },
  "hsl": {
    "h": 136.634,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50831,
    "c": 0.14023,
    "h": 147.4
  },
  "luminance": 0.143
}

Semantic roles & 50–950 ramp

primary
#157A31
secondary
#AF3B8F
accent
#3ABCED
background
#F6FAF6
surface
#EBF3EB
border
#C6CDC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #157A31

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

Preview Lab → · Contrast checker → · Palette generator →

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