#157F40#157F40

#157F40 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.133 H 151.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#157F40
RGBrgb(21, 127, 64)
HSLhsl(144, 72%, 29%)
HSVhsv(144, 83%, 50%)
CMYKcmyk(83.5%, 0%, 49.6%, 50.2%)
CIE-LABlab(46.59, -43.38, 26.23)
CIE-LCHlch(46.59, 50.70, 148.84°)
OKLaboklab(52.5% -0.1164 0.0641)
OKLCHoklch(52.5% 0.133 151.2)
XYZxyz(8.8233, 15.7073, 7.4163)
Luminance0.1571 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F40 #7F1554
analogous
#1F7F15 #157F40 #157F75
triadic
#157F40 #40157F #7F4015
tetradic
#157F40 #151F7F #7F1554 #7F7515
square
#157F40 #151F7F #7F1554 #7F7515
split-complementary
#157F40 #75157F #7F151F
monochromatic
#041A0D #0C4A26 #157F40 #1EB45A #31DD77

Accessibility & contrast

On white

5.07
#157F40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#157F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157F40
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157F40#FFFFFF#000000##FFFFFF
##157F401.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733B
Deuteranopia (green-blind)
#746B45
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #157f40;
/* rgb */ color: rgb(21, 127, 64);
/* oklch */ color: oklch(52.5% 0.133 151.2);
Tailwind
colors: {
  custom: {
    50: '#67a576',
    500: '#157f40',
    950: '#000000',
  },
}
SCSS
$custom: #157f40;
$custom-light: #67a576;
$custom-dark: #000000;
JSON
{
  "hex": "#157f40",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 144.34,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52496,
    "c": 0.1329,
    "h": 151.2
  },
  "luminance": 0.15708
}

Semantic roles & 50–950 ramp

primary
#157F40
secondary
#B43C83
accent
#39A5EE
background
#F6FAF7
surface
#EBF4ED
border
#C6CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #157F40

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

Preview Lab → · Contrast checker → · Palette generator →

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