#157E1F#157E1F

#157E1F is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.8% C 0.159 H 143.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#157E1F
RGBrgb(21, 126, 31)
HSLhsl(126, 71%, 29%)
HSVhsv(126, 83%, 49%)
CMYKcmyk(83.3%, 0%, 75.4%, 50.6%)
CIE-LABlab(45.88, -47.44, 41.31)
CIE-LCHlch(45.88, 62.91, 138.95°)
OKLaboklab(51.79% -0.1283 0.0938)
OKLCHoklch(51.79% 0.159 143.8)
XYZxyz(8.0169, 15.1791, 3.8034)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157E1F #7E1574
analogous
#407E15 #157E1F #157E54
triadic
#157E1F #1F157E #7E1F15
tetradic
#157E1F #15407E #7E1574 #7E5415
square
#157E1F #15407E #7E1574 #7E5415
split-complementary
#157E1F #54157E #7E1540
monochromatic
#041A06 #0C4A12 #157E1F #1EB22C #31DD41

Accessibility & contrast

On white

5.20
#157E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#157E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157E1F
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157E1F#FFFFFF#000000##FFFFFF
##157E1F1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81710E
Deuteranopia (green-blind)
#756A29
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #157e1f;
/* rgb */ color: rgb(21, 126, 31);
/* oklch */ color: oklch(51.8% 0.159 143.8);
Tailwind
colors: {
  custom: {
    50: '#68a461',
    500: '#157e1f',
    950: '#000000',
  },
}
SCSS
$custom: #157e1f;
$custom-light: #68a461;
$custom-dark: #000000;
JSON
{
  "hex": "#157e1f",
  "rgb": {
    "r": 21,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 125.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5179,
    "c": 0.15891,
    "h": 143.8
  },
  "luminance": 0.1518
}

Semantic roles & 50–950 ramp

primary
#157E1F
secondary
#B33CA8
accent
#3ADDEE
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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