#157A18#157A18

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

Color values

HEX#157A18
RGBrgb(21, 122, 24)
HSLhsl(122, 71%, 28%)
HSVhsv(122, 83%, 48%)
CMYKcmyk(82.8%, 0%, 80.3%, 52.2%)
CIE-LABlab(44.44, -46.69, 42.47)
CIE-LCHlch(44.44, 63.11, 137.71°)
OKLaboklab(50.58% -0.1266 0.0952)
OKLCHoklch(50.58% 0.158 143.1)
XYZxyz(7.4332, 14.1435, 3.2022)
Luminance0.1414 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157A18 #7A1577
analogous
#447A15 #157A18 #157A4A
triadic
#157A18 #18157A #7A1815
tetradic
#157A18 #15447A #7A1577 #7A4A15
square
#157A18 #15447A #7A1577 #7A4A15
split-complementary
#157A18 #4A157A #7A1544
monochromatic
#041A05 #0C460E #157A18 #1EAE22 #2EDB33

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##157A18#FFFFFF#000000##FFFFFF
##157A181.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)
#7D6E01
Deuteranopia (green-blind)
#726623
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #157a18;
/* rgb */ color: rgb(21, 122, 24);
/* oklch */ color: oklch(50.6% 0.158 143.1);
Tailwind
colors: {
  custom: {
    50: '#68a25d',
    500: '#157a18',
    950: '#000000',
  },
}
SCSS
$custom: #157a18;
$custom-light: #68a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#157a18",
  "rgb": {
    "r": 21,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 121.782,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50577,
    "c": 0.15838,
    "h": 143.1
  },
  "luminance": 0.14144
}

Semantic roles & 50–950 ramp

primary
#157A18
secondary
#AF3BAC
accent
#3AE8ED
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157A18

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

Preview Lab → · Contrast checker → · Palette generator →

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