#157F20#157F20

#157F20 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.159 H 144.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#157F20
RGBrgb(21, 127, 32)
HSLhsl(126, 72%, 29%)
HSVhsv(126, 83%, 50%)
CMYKcmyk(83.5%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.23, -47.68, 41.28)
CIE-LCHlch(46.23, 63.07, 139.12°)
OKLaboklab(52.09% -0.1289 0.0938)
OKLCHoklch(52.09% 0.159 144)
XYZxyz(8.1588, 15.4415, 3.9167)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F20 #7F1574
analogous
#3F7F15 #157F20 #157F55
triadic
#157F20 #20157F #7F2015
tetradic
#157F20 #153F7F #7F1574 #7F5515
square
#157F20 #153F7F #7F1574 #7F5515
split-complementary
#157F20 #55157F #7F153F
monochromatic
#041A07 #0C4A13 #157F20 #1EB42D #31DD43

Accessibility & contrast

On white

5.14
#157F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#157F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157F20
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157F20#FFFFFF#000000##FFFFFF
##157F201.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82720F
Deuteranopia (green-blind)
#766A2A
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #157f20;
/* rgb */ color: rgb(21, 127, 32);
/* oklch */ color: oklch(52.1% 0.159 144.0);
Tailwind
colors: {
  custom: {
    50: '#68a562',
    500: '#157f20',
    950: '#000000',
  },
}
SCSS
$custom: #157f20;
$custom-light: #68a562;
$custom-dark: #000000;
JSON
{
  "hex": "#157f20",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 126.226,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52087,
    "c": 0.15944,
    "h": 144
  },
  "luminance": 0.15442
}

Semantic roles & 50–950 ramp

primary
#157F20
secondary
#B43CA8
accent
#39DCEE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #157F20

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

Preview Lab → · Contrast checker → · Palette generator →

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