#157D27#157D27

#157D27 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.6% C 0.152 H 145.1°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#157D27
RGBrgb(21, 125, 39)
HSLhsl(130, 71%, 29%)
HSVhsv(130, 83%, 49%)
CMYKcmyk(83.2%, 0%, 68.8%, 51%)
CIE-LABlab(45.60, -46.30, 37.64)
CIE-LCHlch(45.60, 59.67, 140.89°)
OKLaboklab(51.58% -0.1248 0.0871)
OKLCHoklch(51.58% 0.152 145.1)
XYZxyz(8.0085, 14.9722, 4.3869)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157D27 #7D156B
analogous
#377D15 #157D27 #157D5B
triadic
#157D27 #27157D #7D2715
tetradic
#157D27 #15377D #7D156B #7D5B15
square
#157D27 #15377D #7D156B #7D5B15
split-complementary
#157D27 #5B157D #7D1537
monochromatic
#041A08 #0C4917 #157D27 #1EB137 #30DC4E

Accessibility & contrast

On white

5.26
#157D27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#157D27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157D27
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157D27#FFFFFF#000000##FFFFFF
##157D271.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711C
Deuteranopia (green-blind)
#74692F
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #157d27;
/* rgb */ color: rgb(21, 125, 39);
/* oklch */ color: oklch(51.6% 0.152 145.1);
Tailwind
colors: {
  custom: {
    50: '#68a465',
    500: '#157d27',
    950: '#000000',
  },
}
SCSS
$custom: #157d27;
$custom-light: #68a465;
$custom-dark: #000000;
JSON
{
  "hex": "#157d27",
  "rgb": {
    "r": 21,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 130.385,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51576,
    "c": 0.1522,
    "h": 145.1
  },
  "luminance": 0.14973
}

Semantic roles & 50–950 ramp

primary
#157D27
secondary
#B23C9E
accent
#3ACFEE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #157D27

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

Preview Lab → · Contrast checker → · Palette generator →

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