#157F21#157F21

#157F21 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.159 H 144.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#157F21
RGBrgb(21, 127, 33)
HSLhsl(127, 72%, 29%)
HSVhsv(127, 83%, 50%)
CMYKcmyk(83.5%, 0%, 74%, 50.2%)
CIE-LABlab(46.24, -47.59, 40.88)
CIE-LCHlch(46.24, 62.74, 139.33°)
OKLaboklab(52.1% -0.1286 0.0931)
OKLCHoklch(52.1% 0.159 144.1)
XYZxyz(8.1726, 15.4470, 3.9894)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F21 #7F1573
analogous
#3E7F15 #157F21 #157F56
triadic
#157F21 #21157F #7F2115
tetradic
#157F21 #153E7F #7F1573 #7F5615
square
#157F21 #153E7F #7F1573 #7F5615
split-complementary
#157F21 #56157F #7F153E
monochromatic
#041A07 #0C4A13 #157F21 #1EB42F #31DD45

Accessibility & contrast

On white

5.13
#157F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#157F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157F21
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157F21#FFFFFF#000000##FFFFFF
##157F211.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827211
Deuteranopia (green-blind)
#766A2B
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #157f21;
/* rgb */ color: rgb(21, 127, 33);
/* oklch */ color: oklch(52.1% 0.159 144.1);
Tailwind
colors: {
  custom: {
    50: '#68a562',
    500: '#157f21',
    950: '#000000',
  },
}
SCSS
$custom: #157f21;
$custom-light: #68a562;
$custom-dark: #000000;
JSON
{
  "hex": "#157f21",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 126.792,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52095,
    "c": 0.1588,
    "h": 144.1
  },
  "luminance": 0.15448
}

Semantic roles & 50–950 ramp

primary
#157F21
secondary
#B43CA6
accent
#39DAEE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #157F21

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

Preview Lab → · Contrast checker → · Palette generator →

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