#157E2F#157E2F

#157E2F is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.147 H 146.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#157E2F
RGBrgb(21, 126, 47)
HSLhsl(135, 71%, 29%)
HSVhsv(135, 83%, 49%)
CMYKcmyk(83.3%, 0%, 62.7%, 50.6%)
CIE-LABlab(46.02, -45.67, 34.36)
CIE-LCHlch(46.02, 57.15, 143.04°)
OKLaboklab(51.96% -0.1228 0.0809)
OKLCHoklch(51.96% 0.147 146.6)
XYZxyz(8.2826, 15.2854, 5.2026)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157E2F #7E1564
analogous
#307E15 #157E2F #157E64
triadic
#157E2F #2F157E #7E2F15
tetradic
#157E2F #15307E #7E1564 #7E6415
square
#157E2F #15307E #7E1564 #7E6415
split-complementary
#157E2F #64157E #7E1530
monochromatic
#041A0A #0C4A1B #157E2F #1EB243 #31DD5B

Accessibility & contrast

On white

5.18
#157E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#157E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157E2F
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157E2F#FFFFFF#000000##FFFFFF
##157E2F1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807227
Deuteranopia (green-blind)
#746A36
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #157e2f;
/* rgb */ color: rgb(21, 126, 47);
/* oklch */ color: oklch(52.0% 0.147 146.6);
Tailwind
colors: {
  custom: {
    50: '#67a46a',
    500: '#157e2f',
    950: '#000000',
  },
}
SCSS
$custom: #157e2f;
$custom-light: #67a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#157e2f",
  "rgb": {
    "r": 21,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 134.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51956,
    "c": 0.14708,
    "h": 146.6
  },
  "luminance": 0.15286
}

Semantic roles & 50–950 ramp

primary
#157E2F
secondary
#B33C96
accent
#3AC1EE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #157E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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