#157D21#157D21

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

Color values

HEX#157D21
RGBrgb(21, 125, 33)
HSLhsl(127, 71%, 29%)
HSVhsv(127, 83%, 49%)
CMYKcmyk(83.2%, 0%, 73.6%, 51%)
CIE-LABlab(45.55, -46.92, 40.16)
CIE-LCHlch(45.55, 61.76, 139.44°)
OKLaboklab(51.52% -0.1268 0.0916)
OKLCHoklch(51.52% 0.156 144.2)
XYZxyz(7.9168, 14.9355, 3.9041)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157D21 #7D1571
analogous
#3D7D15 #157D21 #157D55
triadic
#157D21 #21157D #7D2115
tetradic
#157D21 #153D7D #7D1571 #7D5515
square
#157D21 #153D7D #7D1571 #7D5515
split-complementary
#157D21 #55157D #7D153D
monochromatic
#041A07 #0C4913 #157D21 #1EB12F #30DC44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##157D21#FFFFFF#000000##FFFFFF
##157D211.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7112
Deuteranopia (green-blind)
#74692A
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #157d21;
/* rgb */ color: rgb(21, 125, 33);
/* oklch */ color: oklch(51.5% 0.156 144.2);
Tailwind
colors: {
  custom: {
    50: '#68a462',
    500: '#157d21',
    950: '#000000',
  },
}
SCSS
$custom: #157d21;
$custom-light: #68a462;
$custom-dark: #000000;
JSON
{
  "hex": "#157d21",
  "rgb": {
    "r": 21,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 126.923,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51518,
    "c": 0.15644,
    "h": 144.2
  },
  "luminance": 0.14936
}

Semantic roles & 50–950 ramp

primary
#157D21
secondary
#B23CA5
accent
#3AD9EE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #157D21

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

Preview Lab → · Contrast checker → · Palette generator →

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