#157B2F#157B2F

#157B2F is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.143 H 146.9°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#157B2F
RGBrgb(21, 123, 47)
HSLhsl(135, 71%, 28%)
HSVhsv(135, 83%, 48%)
CMYKcmyk(82.9%, 0%, 61.8%, 51.8%)
CIE-LABlab(44.98, -44.61, 33.16)
CIE-LCHlch(44.98, 55.58, 143.38°)
OKLaboklab(51.09% -0.12 0.0783)
OKLCHoklch(51.09% 0.143 146.9)
XYZxyz(7.9047, 14.5296, 5.0767)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157B2F #7B1561
analogous
#2E7B15 #157B2F #157B62
triadic
#157B2F #2F157B #7B2F15
tetradic
#157B2F #152E7B #7B1561 #7B6215
square
#157B2F #152E7B #7B1561 #7B6215
split-complementary
#157B2F #62157B #7B152E
monochromatic
#041A0A #0C471B #157B2F #1EAF43 #2FDB5B

Accessibility & contrast

On white

5.38
#157B2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#157B2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157B2F
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157B2F#FFFFFF#000000##FFFFFF
##157B2F1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F27
Deuteranopia (green-blind)
#726735
Tritanopia (blue-blind)
#00786B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #157b2f;
/* rgb */ color: rgb(21, 123, 47);
/* oklch */ color: oklch(51.1% 0.143 146.9);
Tailwind
colors: {
  custom: {
    50: '#67a26a',
    500: '#157b2f',
    950: '#000000',
  },
}
SCSS
$custom: #157b2f;
$custom-light: #67a26a;
$custom-dark: #000000;
JSON
{
  "hex": "#157b2f",
  "rgb": {
    "r": 21,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 135.294,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51093,
    "c": 0.14327,
    "h": 146.9
  },
  "luminance": 0.14531
}

Semantic roles & 50–950 ramp

primary
#157B2F
secondary
#B03B93
accent
#3AC0EE
background
#F6FAF6
surface
#EBF4EB
border
#C6CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #157B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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