#226212#226212

#226212 is a dark, vivid green. Relative luminance 0.091; OKLCH L 43.8% C 0.128 H 140.2°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#226212
RGBrgb(34, 98, 18)
HSLhsl(108, 69%, 23%)
HSVhsv(108, 82%, 38%)
CMYKcmyk(65.3%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.21, -36.02, 36.71)
CIE-LCHlch(36.21, 51.43, 134.45°)
OKLaboklab(43.82% -0.0988 0.0822)
OKLCHoklch(43.82% 0.128 140.2)
XYZxyz(5.1363, 9.1186, 2.0615)
Luminance0.0912 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226212 #521262
analogous
#4A6212 #226212 #12622A
triadic
#226212 #122262 #621222
tetradic
#226212 #124A62 #521262 #622A12
square
#226212 #124A62 #521262 #622A12
split-complementary
#226212 #2A1262 #62124A
monochromatic
#091A05 #102E09 #226212 #34961B #46C925

Accessibility & contrast

On white

7.44
#226212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#226212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #226212
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##226212#FFFFFF#000000##FFFFFF
##2262121.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655801
Deuteranopia (green-blind)
#5D531B
Tritanopia (blue-blind)
#195F53
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #226212;
/* rgb */ color: rgb(34, 98, 18);
/* oklch */ color: oklch(43.8% 0.128 140.2);
Tailwind
colors: {
  custom: {
    50: '#678f57',
    500: '#226212',
    950: '#000000',
  },
}
SCSS
$custom: #226212;
$custom-light: #678f57;
$custom-dark: #000000;
JSON
{
  "hex": "#226212",
  "rgb": {
    "r": 34,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 108,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43823,
    "c": 0.12849,
    "h": 140.2
  },
  "luminance": 0.09119
}

Semantic roles & 50–950 ramp

primary
#226212
secondary
#86369A
accent
#3CECC9
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #226212

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

Preview Lab → · Contrast checker → · Palette generator →

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