#157F17#157F17

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

Color values

HEX#157F17
RGBrgb(21, 127, 23)
HSLhsl(121, 72%, 29%)
HSVhsv(121, 83%, 50%)
CMYKcmyk(83.5%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.18, -48.40, 44.48)
CIE-LCHlch(46.18, 65.73, 137.42°)
OKLaboklab(52.02% -0.1313 0.0992)
OKLCHoklch(52.02% 0.165 142.9)
XYZxyz(8.0528, 15.3991, 3.3584)
Luminance0.1540 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F17 #7F157D
analogous
#487F15 #157F17 #157F4C
triadic
#157F17 #17157F #7F1715
tetradic
#157F17 #15487F #7F157D #7F4C15
square
#157F17 #15487F #7F157D #7F4C15
split-complementary
#157F17 #4C157F #7F1548
monochromatic
#041A05 #0C4A0D #157F17 #1EB421 #31DD35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##157F17#FFFFFF#000000##FFFFFF
##157F171.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: #157f17;
/* rgb */ color: rgb(21, 127, 23);
/* oklch */ color: oklch(52.0% 0.165 142.9);
Tailwind
colors: {
  custom: {
    50: '#69a55d',
    500: '#157f17',
    950: '#000000',
  },
}
SCSS
$custom: #157f17;
$custom-light: #69a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#157f17",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 121.132,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52021,
    "c": 0.16455,
    "h": 142.9
  },
  "luminance": 0.154
}

Semantic roles & 50–950 ramp

primary
#157F17
secondary
#B43CB2
accent
#39EBEE
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157F17

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

Preview Lab → · Contrast checker → · Palette generator →

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