#227212#227212

#227212 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.5% C 0.148 H 140.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#227212
RGBrgb(34, 114, 18)
HSLhsl(110, 73%, 26%)
HSVhsv(110, 84%, 45%)
CMYKcmyk(70.2%, 0%, 84.2%, 55.3%)
CIE-LABlab(41.87, -42.03, 42.10)
CIE-LCHlch(41.87, 59.49, 134.95°)
OKLaboklab(48.51% -0.115 0.0934)
OKLCHoklch(48.51% 0.148 140.9)
XYZxyz(6.7858, 12.4177, 2.6114)
Luminance0.1242 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227212 #621272
analogous
#527212 #227212 #127232
triadic
#227212 #122272 #721222
tetradic
#227212 #125272 #621272 #723212
square
#227212 #125272 #621272 #723212
split-complementary
#227212 #321272 #721252
monochromatic
#081A04 #123D0A #227212 #32A71A #42DC23

Accessibility & contrast

On white

6.03
#227212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#227212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227212
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227212#FFFFFF#000000##FFFFFF
##2272121.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6C601E
Tritanopia (blue-blind)
#126E60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #227212;
/* rgb */ color: rgb(34, 114, 18);
/* oklch */ color: oklch(48.5% 0.148 140.9);
Tailwind
colors: {
  custom: {
    50: '#6a9b59',
    500: '#227212',
    950: '#000000',
  },
}
SCSS
$custom: #227212;
$custom-light: #6a9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#227212",
  "rgb": {
    "r": 34,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 110,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48512,
    "c": 0.14815,
    "h": 140.9
  },
  "luminance": 0.12418
}

Semantic roles & 50–950 ramp

primary
#227212
secondary
#9637A9
accent
#38EFD1
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #227212

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

Preview Lab → · Contrast checker → · Palette generator →

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