#226912#226912

#226912 is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.9% C 0.137 H 140.6°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#226912
RGBrgb(34, 105, 18)
HSLhsl(109, 71%, 24%)
HSVhsv(109, 83%, 41%)
CMYKcmyk(67.6%, 0%, 82.9%, 58.8%)
CIE-LABlab(38.70, -38.70, 39.11)
CIE-LCHlch(38.70, 55.02, 134.70°)
OKLaboklab(45.88% -0.106 0.0872)
OKLCHoklch(45.88% 0.137 140.6)
XYZxyz(5.8202, 10.4863, 2.2895)
Luminance0.1049 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226912 #591269
analogous
#4E6912 #226912 #12692E
triadic
#226912 #122269 #691222
tetradic
#226912 #124E69 #591269 #692E12
square
#226912 #124E69 #591269 #692E12
split-complementary
#226912 #2E1269 #69124E
monochromatic
#081A04 #113509 #226912 #339D1B #44D124

Accessibility & contrast

On white

6.78
#226912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#226912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #226912
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##226912#FFFFFF#000000##FFFFFF
##2269121.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F00
Deuteranopia (green-blind)
#63591C
Tritanopia (blue-blind)
#166559
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #226912;
/* rgb */ color: rgb(34, 105, 18);
/* oklch */ color: oklch(45.9% 0.137 140.6);
Tailwind
colors: {
  custom: {
    50: '#689558',
    500: '#226912',
    950: '#000000',
  },
}
SCSS
$custom: #226912;
$custom-light: #689558;
$custom-dark: #000000;
JSON
{
  "hex": "#226912",
  "rgb": {
    "r": 34,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 108.966,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.45884,
    "c": 0.13726,
    "h": 140.6
  },
  "luminance": 0.10487
}

Semantic roles & 50–950 ramp

primary
#226912
secondary
#8D36A1
accent
#3AEDCD
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #226912

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

Preview Lab → · Contrast checker → · Palette generator →

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