#157A1F#157A1F

#157A1F is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.6% C 0.154 H 143.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#157A1F
RGBrgb(21, 122, 31)
HSLhsl(126, 71%, 28%)
HSVhsv(126, 83%, 48%)
CMYKcmyk(82.8%, 0%, 74.6%, 52.2%)
CIE-LABlab(44.48, -46.10, 39.88)
CIE-LCHlch(44.48, 60.96, 139.14°)
OKLaboklab(50.63% -0.1247 0.0908)
OKLCHoklch(50.63% 0.154 143.9)
XYZxyz(7.5156, 14.1765, 3.6363)
Luminance0.1418 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157A1F #7A1570
analogous
#3D7A15 #157A1F #157A52
triadic
#157A1F #1F157A #7A1F15
tetradic
#157A1F #153D7A #7A1570 #7A5215
square
#157A1F #153D7A #7A1570 #7A5215
split-complementary
#157A1F #52157A #7A153D
monochromatic
#041A07 #0C4612 #157A1F #1EAE2C #2EDB3F

Accessibility & contrast

On white

5.48
#157A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#157A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157A1F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157A1F#FFFFFF#000000##FFFFFF
##157A1F1.005.483.845.48
#FFFFFF5.481.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#726628
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #157a1f;
/* rgb */ color: rgb(21, 122, 31);
/* oklch */ color: oklch(50.6% 0.154 143.9);
Tailwind
colors: {
  custom: {
    50: '#67a161',
    500: '#157a1f',
    950: '#000000',
  },
}
SCSS
$custom: #157a1f;
$custom-light: #67a161;
$custom-dark: #000000;
JSON
{
  "hex": "#157a1f",
  "rgb": {
    "r": 21,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 125.941,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50631,
    "c": 0.15421,
    "h": 143.9
  },
  "luminance": 0.14177
}

Semantic roles & 50–950 ramp

primary
#157A1F
secondary
#AF3BA4
accent
#3ADCED
background
#F6FAF5
surface
#EBF3EA
border
#C6CDC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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