#157B18#157B18

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

Color values

HEX#157B18
RGBrgb(21, 123, 24)
HSLhsl(122, 71%, 28%)
HSVhsv(122, 83%, 48%)
CMYKcmyk(82.9%, 0%, 80.5%, 51.8%)
CIE-LABlab(44.79, -47.02, 42.81)
CIE-LCHlch(44.79, 63.59, 137.68°)
OKLaboklab(50.87% -0.1275 0.0959)
OKLCHoklch(50.87% 0.16 143.1)
XYZxyz(7.5566, 14.3904, 3.2433)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157B18 #7B1578
analogous
#457B15 #157B18 #157B4B
triadic
#157B18 #18157B #7B1815
tetradic
#157B18 #15457B #7B1578 #7B4B15
square
#157B18 #15457B #7B1578 #7B4B15
split-complementary
#157B18 #4B157B #7B1545
monochromatic
#041A05 #0C470E #157B18 #1EAF22 #2FDB34

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##157B18#FFFFFF#000000##FFFFFF
##157B181.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)
#7E6F00
Deuteranopia (green-blind)
#736724
Tritanopia (blue-blind)
#007768
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #157b18;
/* rgb */ color: rgb(21, 123, 24);
/* oklch */ color: oklch(50.9% 0.160 143.1);
Tailwind
colors: {
  custom: {
    50: '#68a25d',
    500: '#157b18',
    950: '#000000',
  },
}
SCSS
$custom: #157b18;
$custom-light: #68a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#157b18",
  "rgb": {
    "r": 21,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 121.765,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50867,
    "c": 0.15951,
    "h": 143.1
  },
  "luminance": 0.14391
}

Semantic roles & 50–950 ramp

primary
#157B18
secondary
#B03BAD
accent
#3AE8EE
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157B18

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

Preview Lab → · Contrast checker → · Palette generator →

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