#157D1C#157D1C

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

Color values

HEX#157D1C
RGBrgb(21, 125, 28)
HSLhsl(124, 71%, 29%)
HSVhsv(124, 83%, 49%)
CMYKcmyk(83.2%, 0%, 77.6%, 51%)
CIE-LABlab(45.51, -47.37, 42.08)
CIE-LCHlch(45.51, 63.36, 138.38°)
OKLaboklab(51.48% -0.1282 0.095)
OKLCHoklch(51.48% 0.16 143.5)
XYZxyz(7.8520, 14.9095, 3.5624)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157D1C #7D1576
analogous
#427D15 #157D1C #157D50
triadic
#157D1C #1C157D #7D1C15
tetradic
#157D1C #15427D #7D1576 #7D5015
square
#157D1C #15427D #7D1576 #7D5015
split-complementary
#157D1C #50157D #7D1542
monochromatic
#041A06 #0C4910 #157D1C #1EB128 #30DC3C

Accessibility & contrast

On white

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

On black

3.98
#157D1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##157D1C#FFFFFF#000000##FFFFFF
##157D1C1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807008
Deuteranopia (green-blind)
#756927
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #157d1c;
/* rgb */ color: rgb(21, 125, 28);
/* oklch */ color: oklch(51.5% 0.160 143.5);
Tailwind
colors: {
  custom: {
    50: '#68a45f',
    500: '#157d1c',
    950: '#000000',
  },
}
SCSS
$custom: #157d1c;
$custom-light: #68a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#157d1c",
  "rgb": {
    "r": 21,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 124.038,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51477,
    "c": 0.15957,
    "h": 143.5
  },
  "luminance": 0.14911
}

Semantic roles & 50–950 ramp

primary
#157D1C
secondary
#B23CAA
accent
#3AE2EE
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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