#157E21#157E21

#157E21 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.8% C 0.158 H 144.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#157E21
RGBrgb(21, 126, 33)
HSLhsl(127, 71%, 29%)
HSVhsv(127, 83%, 49%)
CMYKcmyk(83.3%, 0%, 73.8%, 50.6%)
CIE-LABlab(45.89, -47.26, 40.52)
CIE-LCHlch(45.89, 62.25, 139.39°)
OKLaboklab(51.81% -0.1277 0.0924)
OKLCHoklch(51.81% 0.158 144.1)
XYZxyz(8.0441, 15.1900, 3.9466)
Luminance0.1519 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157E21 #7E1572
analogous
#3E7E15 #157E21 #157E56
triadic
#157E21 #21157E #7E2115
tetradic
#157E21 #153E7E #7E1572 #7E5615
square
#157E21 #153E7E #7E1572 #7E5615
split-complementary
#157E21 #56157E #7E153E
monochromatic
#041A07 #0C4A13 #157E21 #1EB22F #31DD44

Accessibility & contrast

On white

5.20
#157E21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#157E21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157E21
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157E21#FFFFFF#000000##FFFFFF
##157E211.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#756A2A
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #157e21;
/* rgb */ color: rgb(21, 126, 33);
/* oklch */ color: oklch(51.8% 0.158 144.1);
Tailwind
colors: {
  custom: {
    50: '#68a462',
    500: '#157e21',
    950: '#000000',
  },
}
SCSS
$custom: #157e21;
$custom-light: #68a462;
$custom-dark: #000000;
JSON
{
  "hex": "#157e21",
  "rgb": {
    "r": 21,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 126.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51807,
    "c": 0.15762,
    "h": 144.1
  },
  "luminance": 0.15191
}

Semantic roles & 50–950 ramp

primary
#157E21
secondary
#B33CA5
accent
#3ADAEE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #157E21

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

Preview Lab → · Contrast checker → · Palette generator →

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