#157C1F#157C1F

#157C1F is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.2% C 0.157 H 143.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#157C1F
RGBrgb(21, 124, 31)
HSLhsl(126, 71%, 28%)
HSVhsv(126, 83%, 49%)
CMYKcmyk(83.1%, 0%, 75%, 51.4%)
CIE-LABlab(45.18, -46.77, 40.60)
CIE-LCHlch(45.18, 61.93, 139.04°)
OKLaboklab(51.21% -0.1265 0.0923)
OKLCHoklch(51.21% 0.157 143.9)
XYZxyz(7.7637, 14.6727, 3.7190)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157C1F #7C1572
analogous
#3E7C15 #157C1F #157C52
triadic
#157C1F #1F157C #7C1F15
tetradic
#157C1F #153E7C #7C1572 #7C5215
square
#157C1F #153E7C #7C1572 #7C5215
split-complementary
#157C1F #52157C #7C153E
monochromatic
#041A07 #0C4812 #157C1F #1EB02C #30DC40

Accessibility & contrast

On white

5.34
#157C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#157C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157C1F
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157C1F#FFFFFF#000000##FFFFFF
##157C1F1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#746829
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #157c1f;
/* rgb */ color: rgb(21, 124, 31);
/* oklch */ color: oklch(51.2% 0.157 143.9);
Tailwind
colors: {
  custom: {
    50: '#68a361',
    500: '#157c1f',
    950: '#000000',
  },
}
SCSS
$custom: #157c1f;
$custom-light: #68a361;
$custom-dark: #000000;
JSON
{
  "hex": "#157c1f",
  "rgb": {
    "r": 21,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 125.825,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51211,
    "c": 0.15657,
    "h": 143.9
  },
  "luminance": 0.14674
}

Semantic roles & 50–950 ramp

primary
#157C1F
secondary
#B13CA6
accent
#3ADCEE
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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