#226C2A#226C2A

#226C2A is a mid, vivid green. Relative luminance 0.112; OKLCH L 47.0% C 0.123 H 145.0°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#226C2A
RGBrgb(34, 108, 42)
HSLhsl(126, 52%, 28%)
HSVhsv(126, 69%, 42%)
CMYKcmyk(68.5%, 0%, 61.1%, 57.6%)
CIE-LABlab(39.97, -37.41, 29.91)
CIE-LCHlch(39.97, 47.89, 141.36°)
OKLaboklab(47% -0.1012 0.0708)
OKLCHoklch(47% 0.124 145)
XYZxyz(6.4398, 11.2317, 4.0186)
Luminance0.1123 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226C2A #6C2264
analogous
#3F6C22 #226C2A #226C4F
triadic
#226C2A #2A226C #6C2A22
tetradic
#226C2A #223F6C #6C2264 #6C4F22
square
#226C2A #223F6C #6C2264 #6C4F22
split-complementary
#226C2A #4F226C #6C223F
monochromatic
#071709 #133D18 #226C2A #319B3C #44C452

Accessibility & contrast

On white

6.47
#226C2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#226C2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #226C2A
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##226C2A#FFFFFF#000000##FFFFFF
##226C2A1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6223
Deuteranopia (green-blind)
#655C2F
Tritanopia (blue-blind)
#0E695E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #226c2a;
/* rgb */ color: rgb(34, 108, 42);
/* oklch */ color: oklch(47.0% 0.123 145.0);
Tailwind
colors: {
  custom: {
    50: '#679766',
    500: '#226c2a',
    950: '#000000',
  },
}
SCSS
$custom: #226c2a;
$custom-light: #679766;
$custom-dark: #000000;
JSON
{
  "hex": "#226c2a",
  "rgb": {
    "r": 34,
    "g": 108,
    "b": 42
  },
  "hsl": {
    "h": 126.486,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.46999,
    "c": 0.1235,
    "h": 145
  },
  "luminance": 0.11232
}

Semantic roles & 50–950 ramp

primary
#226C2A
secondary
#A04A96
accent
#4CCCDC
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070D06
muted
#7A7E7A

Preview Lab

Preview with #226C2A

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

Preview Lab → · Contrast checker → · Palette generator →

#226C2A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva