#155227#155227

#155227 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.9% C 0.094 H 149.3°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#155227
RGBrgb(21, 82, 39)
HSLhsl(138, 59%, 20%)
HSVhsv(138, 74%, 32%)
CMYKcmyk(74.4%, 0%, 52.4%, 67.8%)
CIE-LABlab(30.25, -30.03, 19.69)
CIE-LCHlch(30.25, 35.91, 146.75°)
OKLaboklab(38.86% -0.0809 0.048)
OKLCHoklch(38.86% 0.094 149.3)
XYZxyz(3.6925, 6.3401, 2.9482)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#155227 #521540
analogous
#215215 #155227 #155245
triadic
#155227 #271552 #522715
tetradic
#155227 #152152 #521540 #524515
square
#155227 #152152 #521540 #524515
split-complementary
#155227 #451552 #521521
monochromatic
#06180C #092110 #155227 #21833E #2EB355

Accessibility & contrast

On white

9.26
#155227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#155227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #155227
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##155227#FFFFFF#000000##FFFFFF
##1552271.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A24
Deuteranopia (green-blind)
#4B452A
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #155227;
/* rgb */ color: rgb(21, 82, 39);
/* oklch */ color: oklch(38.9% 0.094 149.3);
Tailwind
colors: {
  custom: {
    50: '#5c8362',
    500: '#155227',
    950: '#000000',
  },
}
SCSS
$custom: #155227;
$custom-light: #5c8362;
$custom-dark: #000000;
JSON
{
  "hex": "#155227",
  "rgb": {
    "r": 21,
    "g": 82,
    "b": 39
  },
  "hsl": {
    "h": 137.705,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38861,
    "c": 0.09409,
    "h": 149.3
  },
  "luminance": 0.0634
}

Semantic roles & 50–950 ramp

primary
#155227
secondary
#8A3972
accent
#45B4E2
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040B05
muted
#797C79

Preview Lab

Preview with #155227

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

Preview Lab → · Contrast checker → · Palette generator →

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