#157F1B#157F1B

#157F1B is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.0% C 0.162 H 143.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#157F1B
RGBrgb(21, 127, 27)
HSLhsl(123, 72%, 29%)
HSVhsv(123, 83%, 50%)
CMYKcmyk(83.5%, 0%, 78.7%, 50.2%)
CIE-LABlab(46.20, -48.11, 43.13)
CIE-LCHlch(46.20, 64.61, 138.12°)
OKLaboklab(52.05% -0.1303 0.097)
OKLCHoklch(52.05% 0.162 143.3)
XYZxyz(8.0959, 15.4163, 3.5857)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157F1B #7F1579
analogous
#447F15 #157F1B #157F50
triadic
#157F1B #1B157F #7F1B15
tetradic
#157F1B #15447F #7F1579 #7F5015
square
#157F1B #15447F #7F1579 #7F5015
split-complementary
#157F1B #50157F #7F1544
monochromatic
#041A06 #0C4A10 #157F1B #1EB426 #31DD3B

Accessibility & contrast

On white

5.14
#157F1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#157F1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157F1B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157F1B#FFFFFF#000000##FFFFFF
##157F1B1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827204
Deuteranopia (green-blind)
#776A26
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #157f1b;
/* rgb */ color: rgb(21, 127, 27);
/* oklch */ color: oklch(52.0% 0.162 143.3);
Tailwind
colors: {
  custom: {
    50: '#69a55f',
    500: '#157f1b',
    950: '#000000',
  },
}
SCSS
$custom: #157f1b;
$custom-light: #69a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#157f1b",
  "rgb": {
    "r": 21,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 123.396,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52048,
    "c": 0.16244,
    "h": 143.3
  },
  "luminance": 0.15417
}

Semantic roles & 50–950 ramp

primary
#157F1B
secondary
#B43CAD
accent
#39E4EE
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #157F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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