#155212#155212

#155212 is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.6% C 0.113 H 142.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#155212
RGBrgb(21, 82, 18)
HSLhsl(117, 64%, 20%)
HSVhsv(117, 78%, 32%)
CMYKcmyk(74.4%, 0%, 78%, 67.8%)
CIE-LABlab(30.00, -32.97, 30.38)
CIE-LCHlch(30.00, 44.83, 137.34°)
OKLaboklab(38.57% -0.0897 0.0691)
OKLCHoklch(38.57% 0.113 142.4)
XYZxyz(3.4355, 6.2373, 1.5950)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#155212 #4F1252
analogous
#355212 #155212 #12522F
triadic
#155212 #121552 #521215
tetradic
#155212 #123552 #4F1252 #522F12
square
#155212 #123552 #4F1252 #522F12
split-complementary
#155212 #2F1252 #521235
monochromatic
#061906 #082007 #155212 #22841D #2FB628

Accessibility & contrast

On white

9.34
#155212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#155212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #155212
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##155212#FFFFFF#000000##FFFFFF
##1552121.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A07
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#064F45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #155212;
/* rgb */ color: rgb(21, 82, 18);
/* oklch */ color: oklch(38.6% 0.113 142.4);
Tailwind
colors: {
  custom: {
    50: '#5d8354',
    500: '#155212',
    950: '#000000',
  },
}
SCSS
$custom: #155212;
$custom-light: #5d8354;
$custom-dark: #000000;
JSON
{
  "hex": "#155212",
  "rgb": {
    "r": 21,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 117.188,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38572,
    "c": 0.11321,
    "h": 142.4
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#155212
secondary
#87358B
accent
#41E7DF
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #155212

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

Preview Lab → · Contrast checker → · Palette generator →

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