#157D18#157D18

#157D18 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.4% C 0.162 H 143.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#157D18
RGBrgb(21, 125, 24)
HSLhsl(122, 71%, 29%)
HSVhsv(122, 83%, 49%)
CMYKcmyk(83.2%, 0%, 80.8%, 51%)
CIE-LABlab(45.49, -47.68, 43.48)
CIE-LCHlch(45.49, 64.53, 137.63°)
OKLaboklab(51.45% -0.1293 0.0973)
OKLCHoklch(51.45% 0.162 143)
XYZxyz(7.8072, 14.8917, 3.3269)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157D18 #7D157A
analogous
#467D15 #157D18 #157D4C
triadic
#157D18 #18157D #7D1815
tetradic
#157D18 #15467D #7D157A #7D4C15
square
#157D18 #15467D #7D157A #7D4C15
split-complementary
#157D18 #4C157D #7D1546
monochromatic
#041A05 #0C490E #157D18 #1EB122 #30DC35

Accessibility & contrast

On white

5.28
#157D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#157D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157D18
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157D18#FFFFFF#000000##FFFFFF
##157D181.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#756924
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #157d18;
/* rgb */ color: rgb(21, 125, 24);
/* oklch */ color: oklch(51.4% 0.162 143.0);
Tailwind
colors: {
  custom: {
    50: '#68a45e',
    500: '#157d18',
    950: '#000000',
  },
}
SCSS
$custom: #157d18;
$custom-light: #68a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#157d18",
  "rgb": {
    "r": 21,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 121.731,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51448,
    "c": 0.16179,
    "h": 143
  },
  "luminance": 0.14893
}

Semantic roles & 50–950 ramp

primary
#157D18
secondary
#B23CAF
accent
#3AE9EE
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157D18

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

Preview Lab → · Contrast checker → · Palette generator →

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