#157F1F#157F1F

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

Color values

HEX#157F1F
RGBrgb(21, 127, 31)
HSLhsl(126, 72%, 29%)
HSVhsv(126, 83%, 50%)
CMYKcmyk(83.5%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.23, -47.77, 41.66)
CIE-LCHlch(46.23, 63.39, 138.91°)
OKLaboklab(52.08% -0.1292 0.0945)
OKLCHoklch(52.08% 0.16 143.8)
XYZxyz(8.1454, 15.4361, 3.8462)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F1F #7F1575
analogous
#407F15 #157F1F #157F54
triadic
#157F1F #1F157F #7F1F15
tetradic
#157F1F #15407F #7F1575 #7F5415
square
#157F1F #15407F #7F1575 #7F5415
split-complementary
#157F1F #54157F #7F1540
monochromatic
#041A06 #0C4A12 #157F1F #1EB42C #31DD42

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##157F1F#FFFFFF#000000##FFFFFF
##157F1F1.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)
#82720D
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #157f1f;
/* rgb */ color: rgb(21, 127, 31);
/* oklch */ color: oklch(52.1% 0.160 143.8);
Tailwind
colors: {
  custom: {
    50: '#69a561',
    500: '#157f1f',
    950: '#000000',
  },
}
SCSS
$custom: #157f1f;
$custom-light: #69a561;
$custom-dark: #000000;
JSON
{
  "hex": "#157f1f",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 125.66,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52079,
    "c": 0.16007,
    "h": 143.8
  },
  "luminance": 0.15437
}

Semantic roles & 50–950 ramp

primary
#157F1F
secondary
#B43CA9
accent
#39DDEE
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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