#157D1F#157D1F

#157D1F is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.5% C 0.158 H 143.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#157D1F
RGBrgb(21, 125, 31)
HSLhsl(126, 71%, 29%)
HSVhsv(126, 83%, 49%)
CMYKcmyk(83.2%, 0%, 75.2%, 51%)
CIE-LABlab(45.53, -47.11, 40.95)
CIE-LCHlch(45.53, 62.42, 139.00°)
OKLaboklab(51.5% -0.1274 0.093)
OKLCHoklch(51.5% 0.158 143.9)
XYZxyz(7.8897, 14.9246, 3.7610)
Luminance0.1493 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157D1F #7D1573
analogous
#3F7D15 #157D1F #157D53
triadic
#157D1F #1F157D #7D1F15
tetradic
#157D1F #153F7D #7D1573 #7D5315
square
#157D1F #153F7D #7D1573 #7D5315
split-complementary
#157D1F #53157D #7D153F
monochromatic
#041A06 #0C4912 #157D1F #1EB12C #30DC41

Accessibility & contrast

On white

5.27
#157D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#157D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157D1F
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157D1F#FFFFFF#000000##FFFFFF
##157D1F1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80700E
Deuteranopia (green-blind)
#746929
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #157d1f;
/* rgb */ color: rgb(21, 125, 31);
/* oklch */ color: oklch(51.5% 0.158 143.9);
Tailwind
colors: {
  custom: {
    50: '#68a461',
    500: '#157d1f',
    950: '#000000',
  },
}
SCSS
$custom: #157d1f;
$custom-light: #68a461;
$custom-dark: #000000;
JSON
{
  "hex": "#157d1f",
  "rgb": {
    "r": 21,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 125.769,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.515,
    "c": 0.15774,
    "h": 143.9
  },
  "luminance": 0.14926
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #157D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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