#157E1B#157E1B

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

Color values

HEX#157E1B
RGBrgb(21, 126, 27)
HSLhsl(123, 71%, 29%)
HSVhsv(123, 83%, 49%)
CMYKcmyk(83.3%, 0%, 78.6%, 50.6%)
CIE-LABlab(45.85, -47.78, 42.79)
CIE-LCHlch(45.85, 64.14, 138.15°)
OKLaboklab(51.76% -0.1294 0.0963)
OKLCHoklch(51.76% 0.161 143.4)
XYZxyz(7.9674, 15.1593, 3.5428)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157E1B #7E1578
analogous
#447E15 #157E1B #157E50
triadic
#157E1B #1B157E #7E1B15
tetradic
#157E1B #15447E #7E1578 #7E5015
square
#157E1B #15447E #7E1578 #7E5015
split-complementary
#157E1B #50157E #7E1544
monochromatic
#041A06 #0C4A10 #157E1B #1EB226 #31DD3B

Accessibility & contrast

On white

5.21
#157E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#157E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157E1B
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157E1B#FFFFFF#000000##FFFFFF
##157E1B1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817105
Deuteranopia (green-blind)
#766A26
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #157e1b;
/* rgb */ color: rgb(21, 126, 27);
/* oklch */ color: oklch(51.8% 0.161 143.4);
Tailwind
colors: {
  custom: {
    50: '#68a45f',
    500: '#157e1b',
    950: '#000000',
  },
}
SCSS
$custom: #157e1b;
$custom-light: #68a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#157e1b",
  "rgb": {
    "r": 21,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 123.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51759,
    "c": 0.1613,
    "h": 143.4
  },
  "luminance": 0.1516
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #157E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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