#157F18#157F18

#157F18 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.0% C 0.164 H 143.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#157F18
RGBrgb(21, 127, 24)
HSLhsl(122, 72%, 29%)
HSVhsv(122, 83%, 50%)
CMYKcmyk(83.5%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.18, -48.33, 44.15)
CIE-LCHlch(46.18, 65.46, 137.58°)
OKLaboklab(52.03% -0.131 0.0987)
OKLCHoklch(52.03% 0.164 143)
XYZxyz(8.0630, 15.4031, 3.4121)
Luminance0.1540 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F18 #7F157C
analogous
#477F15 #157F18 #157F4D
triadic
#157F18 #18157F #7F1815
tetradic
#157F18 #15477F #7F157C #7F4D15
square
#157F18 #15477F #7F157C #7F4D15
split-complementary
#157F18 #4D157F #7F1547
monochromatic
#041A05 #0C4A0E #157F18 #1EB422 #31DD36

Accessibility & contrast

On white

5.15
#157F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#157F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157F18
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157F18#FFFFFF#000000##FFFFFF
##157F181.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#776A24
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #157f18;
/* rgb */ color: rgb(21, 127, 24);
/* oklch */ color: oklch(52.0% 0.164 143.0);
Tailwind
colors: {
  custom: {
    50: '#69a55e',
    500: '#157f18',
    950: '#000000',
  },
}
SCSS
$custom: #157f18;
$custom-light: #69a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#157f18",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 121.698,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52027,
    "c": 0.16405,
    "h": 143
  },
  "luminance": 0.15404
}

Semantic roles & 50–950 ramp

primary
#157F18
secondary
#B43CB1
accent
#39E9EE
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157F18

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

Preview Lab → · Contrast checker → · Palette generator →

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