#157F2A#157F2A

#157F2A is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.152 H 145.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#157F2A
RGBrgb(21, 127, 42)
HSLhsl(132, 72%, 29%)
HSVhsv(132, 83%, 50%)
CMYKcmyk(83.5%, 0%, 66.9%, 50.2%)
CIE-LABlab(46.32, -46.64, 37.07)
CIE-LCHlch(46.32, 59.57, 141.52°)
OKLaboklab(52.18% -0.1257 0.0862)
OKLCHoklch(52.18% 0.152 145.6)
XYZxyz(8.3159, 15.5043, 4.7444)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F2A #7F156A
analogous
#357F15 #157F2A #157F5F
triadic
#157F2A #2A157F #7F2A15
tetradic
#157F2A #15357F #7F156A #7F5F15
square
#157F2A #15357F #7F156A #7F5F15
split-complementary
#157F2A #5F157F #7F1535
monochromatic
#041A09 #0C4A19 #157F2A #1EB43B #31DD53

Accessibility & contrast

On white

5.12
#157F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#157F2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157F2A
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157F2A#FFFFFF#000000##FFFFFF
##157F2A1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817320
Deuteranopia (green-blind)
#766B32
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #157f2a;
/* rgb */ color: rgb(21, 127, 42);
/* oklch */ color: oklch(52.2% 0.152 145.6);
Tailwind
colors: {
  custom: {
    50: '#68a567',
    500: '#157f2a',
    950: '#000000',
  },
}
SCSS
$custom: #157f2a;
$custom-light: #68a567;
$custom-dark: #000000;
JSON
{
  "hex": "#157f2a",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 131.887,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52184,
    "c": 0.15236,
    "h": 145.6
  },
  "luminance": 0.15505
}

Semantic roles & 50–950 ramp

primary
#157F2A
secondary
#B43C9C
accent
#39CBEE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #157F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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