#157D17#157D17

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

Color values

HEX#157D17
RGBrgb(21, 125, 23)
HSLhsl(121, 71%, 29%)
HSVhsv(121, 83%, 49%)
CMYKcmyk(83.2%, 0%, 81.6%, 51%)
CIE-LABlab(45.48, -47.75, 43.81)
CIE-LCHlch(45.48, 64.80, 137.46°)
OKLaboklab(51.44% -0.1295 0.0978)
OKLCHoklch(51.44% 0.162 142.9)
XYZxyz(7.7970, 14.8876, 3.2731)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157D17 #7D157B
analogous
#477D15 #157D17 #157D4B
triadic
#157D17 #17157D #7D1715
tetradic
#157D17 #15477D #7D157B #7D4B15
square
#157D17 #15477D #7D157B #7D4B15
split-complementary
#157D17 #4B157D #7D1547
monochromatic
#041A05 #0C490D #157D17 #1EB121 #30DC33

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##157D17#FFFFFF#000000##FFFFFF
##157D171.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)
#756923
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #157d17;
/* rgb */ color: rgb(21, 125, 23);
/* oklch */ color: oklch(51.4% 0.162 142.9);
Tailwind
colors: {
  custom: {
    50: '#68a45d',
    500: '#157d17',
    950: '#000000',
  },
}
SCSS
$custom: #157d17;
$custom-light: #68a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#157d17",
  "rgb": {
    "r": 21,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 121.154,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51442,
    "c": 0.1623,
    "h": 142.9
  },
  "luminance": 0.14889
}

Semantic roles & 50–950 ramp

primary
#157D17
secondary
#B23CB0
accent
#3AEBEE
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157D17

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

Preview Lab → · Contrast checker → · Palette generator →

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