#157A1B#157A1B

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

Color values

HEX#157A1B
RGBrgb(21, 122, 27)
HSLhsl(124, 71%, 28%)
HSVhsv(124, 83%, 48%)
CMYKcmyk(82.8%, 0%, 77.9%, 52.2%)
CIE-LABlab(44.46, -46.45, 41.41)
CIE-LCHlch(44.46, 62.23, 138.29°)
OKLaboklab(50.6% -0.1258 0.0934)
OKLCHoklch(50.6% 0.157 143.4)
XYZxyz(7.4661, 14.1567, 3.3757)
Luminance0.1416 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157A1B #7A1574
analogous
#427A15 #157A1B #157A4D
triadic
#157A1B #1B157A #7A1B15
tetradic
#157A1B #15427A #7A1574 #7A4D15
square
#157A1B #15427A #7A1574 #7A4D15
split-complementary
#157A1B #4D157A #7A1542
monochromatic
#041A06 #0C460F #157A1B #1EAE27 #2EDB39

Accessibility & contrast

On white

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

On black

3.83
#157A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##157A1B#FFFFFF#000000##FFFFFF
##157A1B1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #157a1b;
/* rgb */ color: rgb(21, 122, 27);
/* oklch */ color: oklch(50.6% 0.157 143.4);
Tailwind
colors: {
  custom: {
    50: '#67a15f',
    500: '#157a1b',
    950: '#000000',
  },
}
SCSS
$custom: #157a1b;
$custom-light: #67a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#157a1b",
  "rgb": {
    "r": 21,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 123.564,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50598,
    "c": 0.15668,
    "h": 143.4
  },
  "luminance": 0.14158
}

Semantic roles & 50–950 ramp

primary
#157A1B
secondary
#AF3BA9
accent
#3AE3ED
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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