#157E12#157E12

#157E12 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.166 H 142.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#157E12
RGBrgb(21, 126, 18)
HSLhsl(118, 75%, 28%)
HSVhsv(118, 86%, 49%)
CMYKcmyk(83.3%, 0%, 85.7%, 50.6%)
CIE-LABlab(45.80, -48.38, 45.64)
CIE-LCHlch(45.80, 66.52, 136.67°)
OKLaboklab(51.7% -0.1314 0.1009)
OKLCHoklch(51.7% 0.166 142.5)
XYZxyz(7.8788, 15.1239, 3.0761)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157E12 #7B127E
analogous
#4B7E12 #157E12 #127E45
triadic
#157E12 #12157E #7E1215
tetradic
#157E12 #124B7E #7B127E #7E4512
square
#157E12 #124B7E #7B127E #7E4512
split-complementary
#157E12 #45127E #7E124B
monochromatic
#041B04 #0C480A #157E12 #1EB41A #2FE12A

Accessibility & contrast

On white

5.22
#157E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#157E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157E12
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157E12#FFFFFF#000000##FFFFFF
##157E121.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#766A20
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #157e12;
/* rgb */ color: rgb(21, 126, 18);
/* oklch */ color: oklch(51.7% 0.166 142.5);
Tailwind
colors: {
  custom: {
    50: '#69a45b',
    500: '#157e12',
    950: '#000000',
  },
}
SCSS
$custom: #157e12;
$custom-light: #69a45b;
$custom-dark: #000000;
JSON
{
  "hex": "#157e12",
  "rgb": {
    "r": 21,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 118.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51703,
    "c": 0.16573,
    "h": 142.5
  },
  "luminance": 0.15125
}

Semantic roles & 50–950 ramp

primary
#157E12
secondary
#B038B4
accent
#36F2EC
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F04
muted
#7A7F79

Preview Lab

Preview with #157E12

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

Preview Lab → · Contrast checker → · Palette generator →

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