#157B42#157B42

#157B42 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.126 H 152.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#157B42
RGBrgb(21, 123, 66)
HSLhsl(146, 71%, 28%)
HSVhsv(146, 83%, 48%)
CMYKcmyk(82.9%, 0%, 46.3%, 51.8%)
CIE-LABlab(45.25, -41.49, 23.42)
CIE-LCHlch(45.25, 47.65, 150.56°)
OKLaboklab(51.4% -0.1115 0.0577)
OKLCHoklch(51.4% 0.126 152.6)
XYZxyz(8.3748, 14.7177, 7.5526)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157B42 #7B154E
analogous
#1B7B15 #157B42 #157B75
triadic
#157B42 #42157B #7B4215
tetradic
#157B42 #151B7B #7B154E #7B7515
square
#157B42 #151B7B #7B154E #7B7515
split-complementary
#157B42 #75157B #7B151B
monochromatic
#041A0E #0C4726 #157B42 #1EAF5E #2FDB7B

Accessibility & contrast

On white

5.32
#157B42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#157B42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157B42
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157B42#FFFFFF#000000##FFFFFF
##157B421.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#706846
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #157b42;
/* rgb */ color: rgb(21, 123, 66);
/* oklch */ color: oklch(51.4% 0.126 152.6);
Tailwind
colors: {
  custom: {
    50: '#66a277',
    500: '#157b42',
    950: '#000000',
  },
}
SCSS
$custom: #157b42;
$custom-light: #66a277;
$custom-dark: #000000;
JSON
{
  "hex": "#157b42",
  "rgb": {
    "r": 21,
    "g": 123,
    "b": 66
  },
  "hsl": {
    "h": 146.471,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51395,
    "c": 0.12553,
    "h": 152.6
  },
  "luminance": 0.14719
}

Semantic roles & 50–950 ramp

primary
#157B42
secondary
#B03B7D
accent
#3A9EEE
background
#F6FAF7
surface
#EBF4ED
border
#C6CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #157B42

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

Preview Lab → · Contrast checker → · Palette generator →

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