#157D1B#157D1B

#157D1B is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.5% C 0.160 H 143.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#157D1B
RGBrgb(21, 125, 27)
HSLhsl(123, 71%, 29%)
HSVhsv(123, 83%, 49%)
CMYKcmyk(83.2%, 0%, 78.4%, 51%)
CIE-LABlab(45.50, -47.45, 42.45)
CIE-LCHlch(45.50, 63.66, 138.18°)
OKLaboklab(51.47% -0.1285 0.0956)
OKLCHoklch(51.47% 0.16 143.4)
XYZxyz(7.8402, 14.9048, 3.5004)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157D1B #7D1577
analogous
#437D15 #157D1B #157D4F
triadic
#157D1B #1B157D #7D1B15
tetradic
#157D1B #15437D #7D1577 #7D4F15
square
#157D1B #15437D #7D1577 #7D4F15
split-complementary
#157D1B #4F157D #7D1543
monochromatic
#041A06 #0C4910 #157D1B #1EB126 #30DC3A

Accessibility & contrast

On white

5.27
#157D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #157D1B
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157D1B#FFFFFF#000000##FFFFFF
##157D1B1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807005
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #157d1b;
/* rgb */ color: rgb(21, 125, 27);
/* oklch */ color: oklch(51.5% 0.160 143.4);
Tailwind
colors: {
  custom: {
    50: '#68a45f',
    500: '#157d1b',
    950: '#000000',
  },
}
SCSS
$custom: #157d1b;
$custom-light: #68a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#157d1b",
  "rgb": {
    "r": 21,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 123.462,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51469,
    "c": 0.16015,
    "h": 143.4
  },
  "luminance": 0.14906
}

Semantic roles & 50–950 ramp

primary
#157D1B
secondary
#B23CAB
accent
#3AE4EE
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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