#157B1F#157B1F

#157B1F is a mid, vivid green. Relative luminance 0.144; OKLCH L 50.9% C 0.155 H 143.9°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#157B1F
RGBrgb(21, 123, 31)
HSLhsl(126, 71%, 28%)
HSVhsv(126, 83%, 48%)
CMYKcmyk(82.9%, 0%, 74.8%, 51.8%)
CIE-LABlab(44.83, -46.44, 40.24)
CIE-LCHlch(44.83, 61.45, 139.09°)
OKLaboklab(50.92% -0.1256 0.0915)
OKLCHoklch(50.92% 0.155 143.9)
XYZxyz(7.6390, 14.4233, 3.6774)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157B1F #7B1571
analogous
#3E7B15 #157B1F #157B52
triadic
#157B1F #1F157B #7B1F15
tetradic
#157B1F #153E7B #7B1571 #7B5215
square
#157B1F #153E7B #7B1571 #7B5215
split-complementary
#157B1F #52157B #7B153E
monochromatic
#041A07 #0C4712 #157B1F #1EAF2C #2FDB40

Accessibility & contrast

On white

5.41
#157B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#157B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157B1F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157B1F#FFFFFF#000000##FFFFFF
##157B1F1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F0F
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #157b1f;
/* rgb */ color: rgb(21, 123, 31);
/* oklch */ color: oklch(50.9% 0.155 143.9);
Tailwind
colors: {
  custom: {
    50: '#67a261',
    500: '#157b1f',
    950: '#000000',
  },
}
SCSS
$custom: #157b1f;
$custom-light: #67a261;
$custom-dark: #000000;
JSON
{
  "hex": "#157b1f",
  "rgb": {
    "r": 21,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 125.882,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50921,
    "c": 0.15539,
    "h": 143.9
  },
  "luminance": 0.14424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #157B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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