#157B40#157B40

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

Color values

HEX#157B40
RGBrgb(21, 123, 64)
HSLhsl(145, 71%, 28%)
HSVhsv(145, 83%, 48%)
CMYKcmyk(82.9%, 0%, 48%, 51.8%)
CIE-LABlab(45.21, -41.87, 24.49)
CIE-LCHlch(45.21, 48.50, 149.68°)
OKLaboklab(51.36% -0.1124 0.0601)
OKLCHoklch(51.36% 0.127 151.9)
XYZxyz(8.3169, 14.6945, 7.2475)
Luminance0.1470 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157B40 #7B1550
analogous
#1D7B15 #157B40 #157B73
triadic
#157B40 #40157B #7B4015
tetradic
#157B40 #151D7B #7B1550 #7B7315
square
#157B40 #151D7B #7B1550 #7B7315
split-complementary
#157B40 #73157B #7B151D
monochromatic
#041A0E #0C4725 #157B40 #1EAF5B #2FDB78

Accessibility & contrast

On white

5.33
#157B40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #157B40
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157B40#FFFFFF#000000##FFFFFF
##157B401.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #157b40;
/* rgb */ color: rgb(21, 123, 64);
/* oklch */ color: oklch(51.4% 0.127 151.9);
Tailwind
colors: {
  custom: {
    50: '#66a276',
    500: '#157b40',
    950: '#000000',
  },
}
SCSS
$custom: #157b40;
$custom-light: #66a276;
$custom-dark: #000000;
JSON
{
  "hex": "#157b40",
  "rgb": {
    "r": 21,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 145.294,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51358,
    "c": 0.12748,
    "h": 151.9
  },
  "luminance": 0.14696
}

Semantic roles & 50–950 ramp

primary
#157B40
secondary
#B03B7F
accent
#3AA2EE
background
#F6FAF7
surface
#EBF4ED
border
#C6CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #157B40

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

Preview Lab → · Contrast checker → · Palette generator →

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