#157227#157227

#157227 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.4% C 0.138 H 145.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#157227
RGBrgb(21, 114, 39)
HSLhsl(132, 69%, 26%)
HSVhsv(132, 82%, 45%)
CMYKcmyk(81.6%, 0%, 65.8%, 55.3%)
CIE-LABlab(41.75, -42.46, 33.37)
CIE-LCHlch(41.75, 54.01, 141.83°)
OKLaboklab(48.38% -0.1144 0.078)
OKLCHoklch(48.38% 0.138 145.7)
XYZxyz(6.6923, 12.3397, 3.9482)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157227 #721560
analogous
#327215 #157227 #157256
triadic
#157227 #271572 #722715
tetradic
#157227 #153272 #721560 #725615
square
#157227 #153272 #721560 #725615
split-complementary
#157227 #561572 #721532
monochromatic
#051A09 #0B3E15 #157227 #1FA639 #2AD84B

Accessibility & contrast

On white

6.06
#157227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#157227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157227
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157227#FFFFFF#000000##FFFFFF
##1572271.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74671E
Deuteranopia (green-blind)
#6A602E
Tritanopia (blue-blind)
#006F62
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #157227;
/* rgb */ color: rgb(21, 114, 39);
/* oklch */ color: oklch(48.4% 0.138 145.7);
Tailwind
colors: {
  custom: {
    50: '#649c64',
    500: '#157227',
    950: '#000000',
  },
}
SCSS
$custom: #157227;
$custom-light: #649c64;
$custom-dark: #000000;
JSON
{
  "hex": "#157227",
  "rgb": {
    "r": 21,
    "g": 114,
    "b": 39
  },
  "hsl": {
    "h": 131.613,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48382,
    "c": 0.13848,
    "h": 145.7
  },
  "luminance": 0.12341
}

Semantic roles & 50–950 ramp

primary
#157227
secondary
#A83B93
accent
#3CCAEC
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #157227

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

Preview Lab → · Contrast checker → · Palette generator →

#157227 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva