#157C1B#157C1B

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

Color values

HEX#157C1B
RGBrgb(21, 124, 27)
HSLhsl(123, 71%, 28%)
HSVhsv(123, 83%, 49%)
CMYKcmyk(83.1%, 0%, 78.2%, 51.4%)
CIE-LABlab(45.16, -47.12, 42.10)
CIE-LCHlch(45.16, 63.19, 138.22°)
OKLaboklab(51.18% -0.1276 0.0948)
OKLCHoklch(51.18% 0.159 143.4)
XYZxyz(7.7142, 14.6529, 3.4584)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157C1B #7C1576
analogous
#427C15 #157C1B #157C4E
triadic
#157C1B #1B157C #7C1B15
tetradic
#157C1B #15427C #7C1576 #7C4E15
square
#157C1B #15427C #7C1576 #7C4E15
split-complementary
#157C1B #4E157C #7C1542
monochromatic
#041A06 #0C4810 #157C1B #1EB026 #30DC3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##157C1B#FFFFFF#000000##FFFFFF
##157C1B1.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)
#7F6F06
Deuteranopia (green-blind)
#746826
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #157c1b;
/* rgb */ color: rgb(21, 124, 27);
/* oklch */ color: oklch(51.2% 0.159 143.4);
Tailwind
colors: {
  custom: {
    50: '#68a35f',
    500: '#157c1b',
    950: '#000000',
  },
}
SCSS
$custom: #157c1b;
$custom-light: #68a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#157c1b",
  "rgb": {
    "r": 21,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 123.495,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51179,
    "c": 0.159,
    "h": 143.4
  },
  "luminance": 0.14654
}

Semantic roles & 50–950 ramp

primary
#157C1B
secondary
#B13CAA
accent
#3AE3EE
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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