#157F28#157F28

#157F28 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.154 H 145.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#157F28
RGBrgb(21, 127, 40)
HSLhsl(131, 72%, 29%)
HSVhsv(131, 83%, 50%)
CMYKcmyk(83.5%, 0%, 68.5%, 50.2%)
CIE-LABlab(46.30, -46.87, 37.95)
CIE-LCHlch(46.30, 60.31, 141.00°)
OKLaboklab(52.16% -0.1264 0.0878)
OKLCHoklch(52.16% 0.154 145.2)
XYZxyz(8.2810, 15.4904, 4.5606)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F28 #7F156C
analogous
#377F15 #157F28 #157F5D
triadic
#157F28 #28157F #7F2815
tetradic
#157F28 #15377F #7F156C #7F5D15
square
#157F28 #15377F #7F156C #7F5D15
split-complementary
#157F28 #5D157F #7F1537
monochromatic
#041A08 #0C4A17 #157F28 #1EB439 #31DD50

Accessibility & contrast

On white

5.12
#157F28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#157F28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157F28
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157F28#FFFFFF#000000##FFFFFF
##157F281.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721D
Deuteranopia (green-blind)
#766B30
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #157f28;
/* rgb */ color: rgb(21, 127, 40);
/* oklch */ color: oklch(52.2% 0.154 145.2);
Tailwind
colors: {
  custom: {
    50: '#68a566',
    500: '#157f28',
    950: '#000000',
  },
}
SCSS
$custom: #157f28;
$custom-light: #68a566;
$custom-dark: #000000;
JSON
{
  "hex": "#157f28",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 130.755,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52162,
    "c": 0.15389,
    "h": 145.2
  },
  "luminance": 0.15491
}

Semantic roles & 50–950 ramp

primary
#157F28
secondary
#B43C9E
accent
#39CEEE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #157F28

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

Preview Lab → · Contrast checker → · Palette generator →

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