#157B21#157B21

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

Color values

HEX#157B21
RGBrgb(21, 123, 33)
HSLhsl(127, 71%, 28%)
HSVhsv(127, 83%, 48%)
CMYKcmyk(82.9%, 0%, 73.2%, 51.8%)
CIE-LABlab(44.85, -46.25, 39.44)
CIE-LCHlch(44.85, 60.78, 139.55°)
OKLaboklab(50.94% -0.125 0.0901)
OKLCHoklch(50.94% 0.154 144.2)
XYZxyz(7.6662, 14.4342, 3.8206)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157B21 #7B156F
analogous
#3C7B15 #157B21 #157B54
triadic
#157B21 #21157B #7B2115
tetradic
#157B21 #153C7B #7B156F #7B5415
square
#157B21 #153C7B #7B156F #7B5415
split-complementary
#157B21 #54157B #7B153C
monochromatic
#041A07 #0C4713 #157B21 #1EAF2F #2FDB43

Accessibility & contrast

On white

5.40
#157B21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#157B21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157B21
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157B21#FFFFFF#000000##FFFFFF
##157B211.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F13
Deuteranopia (green-blind)
#72672A
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #157b21;
/* rgb */ color: rgb(21, 123, 33);
/* oklch */ color: oklch(50.9% 0.154 144.2);
Tailwind
colors: {
  custom: {
    50: '#67a262',
    500: '#157b21',
    950: '#000000',
  },
}
SCSS
$custom: #157b21;
$custom-light: #67a262;
$custom-dark: #000000;
JSON
{
  "hex": "#157b21",
  "rgb": {
    "r": 21,
    "g": 123,
    "b": 33
  },
  "hsl": {
    "h": 127.059,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50938,
    "c": 0.15407,
    "h": 144.2
  },
  "luminance": 0.14435
}

Semantic roles & 50–950 ramp

primary
#157B21
secondary
#B03BA3
accent
#3AD8EE
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #157B21

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

Preview Lab → · Contrast checker → · Palette generator →

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