#157E1C#157E1C

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

Color values

HEX#157E1C
RGBrgb(21, 126, 28)
HSLhsl(124, 71%, 29%)
HSVhsv(124, 83%, 49%)
CMYKcmyk(83.3%, 0%, 77.8%, 50.6%)
CIE-LABlab(45.86, -47.70, 42.43)
CIE-LCHlch(45.86, 63.84, 138.34°)
OKLaboklab(51.77% -0.1291 0.0957)
OKLCHoklch(51.77% 0.161 143.5)
XYZxyz(7.9792, 15.1640, 3.6048)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157E1C #7E1577
analogous
#437E15 #157E1C #157E51
triadic
#157E1C #1C157E #7E1C15
tetradic
#157E1C #15437E #7E1577 #7E5115
square
#157E1C #15437E #7E1577 #7E5115
split-complementary
#157E1C #51157E #7E1543
monochromatic
#041A06 #0C4A10 #157E1C #1EB228 #31DD3C

Accessibility & contrast

On white

5.21
#157E1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#157E1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157E1C
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157E1C#FFFFFF#000000##FFFFFF
##157E1C1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817107
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #157e1c;
/* rgb */ color: rgb(21, 126, 28);
/* oklch */ color: oklch(51.8% 0.161 143.5);
Tailwind
colors: {
  custom: {
    50: '#68a460',
    500: '#157e1c',
    950: '#000000',
  },
}
SCSS
$custom: #157e1c;
$custom-light: #68a460;
$custom-dark: #000000;
JSON
{
  "hex": "#157e1c",
  "rgb": {
    "r": 21,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 124,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51766,
    "c": 0.16072,
    "h": 143.5
  },
  "luminance": 0.15165
}

Semantic roles & 50–950 ramp

primary
#157E1C
secondary
#B33CAB
accent
#3AE2EE
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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