#157F2C#157F2C

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

Color values

HEX#157F2C
RGBrgb(21, 127, 44)
HSLhsl(133, 72%, 29%)
HSVhsv(133, 83%, 50%)
CMYKcmyk(83.5%, 0%, 65.4%, 50.2%)
CIE-LABlab(46.34, -46.40, 36.16)
CIE-LCHlch(46.34, 58.82, 142.07°)
OKLaboklab(52.21% -0.1249 0.0845)
OKLCHoklch(52.21% 0.151 145.9)
XYZxyz(8.3526, 15.5190, 4.9376)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F2C #7F1568
analogous
#337F15 #157F2C #157F61
triadic
#157F2C #2C157F #7F2C15
tetradic
#157F2C #15337F #7F1568 #7F6115
square
#157F2C #15337F #7F1568 #7F6115
split-complementary
#157F2C #61157F #7F1533
monochromatic
#041A09 #0C4A1A #157F2C #1EB43E #31DD57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##157F2C#FFFFFF#000000##FFFFFF
##157F2C1.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)
#817322
Deuteranopia (green-blind)
#766B33
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #157f2c;
/* rgb */ color: rgb(21, 127, 44);
/* oklch */ color: oklch(52.2% 0.151 145.9);
Tailwind
colors: {
  custom: {
    50: '#68a569',
    500: '#157f2c',
    950: '#000000',
  },
}
SCSS
$custom: #157f2c;
$custom-light: #68a569;
$custom-dark: #000000;
JSON
{
  "hex": "#157f2c",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 133.019,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52207,
    "c": 0.15079,
    "h": 145.9
  },
  "luminance": 0.1552
}

Semantic roles & 50–950 ramp

primary
#157F2C
secondary
#B43C9A
accent
#39C7EE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #157F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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