#226822#226822

#226822 is a mid, vivid green. Relative luminance 0.104; OKLCH L 45.7% C 0.125 H 143.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#226822
RGBrgb(34, 104, 34)
HSLhsl(120, 51%, 27%)
HSVhsv(120, 67%, 41%)
CMYKcmyk(67.3%, 0%, 67.3%, 59.2%)
CIE-LABlab(38.47, -36.84, 32.19)
CIE-LCHlch(38.47, 48.93, 138.85°)
OKLaboklab(45.74% -0.1001 0.0749)
OKLCHoklch(45.74% 0.125 143.2)
XYZxyz(5.8984, 10.3556, 3.2011)
Luminance0.1036 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226822 #682268
analogous
#456822 #226822 #226845
triadic
#226822 #222268 #682222
tetradic
#226822 #224568 #682268 #684522
square
#226822 #224568 #682268 #684522
split-complementary
#226822 #452268 #682245
monochromatic
#081708 #133A13 #226822 #319631 #43C243

Accessibility & contrast

On white

6.84
#226822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#226822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #226822
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##226822#FFFFFF#000000##FFFFFF
##2268221.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5E1A
Deuteranopia (green-blind)
#625828
Tritanopia (blue-blind)
#136559
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #226822;
/* rgb */ color: rgb(34, 104, 34);
/* oklch */ color: oklch(45.7% 0.125 143.2);
Tailwind
colors: {
  custom: {
    50: '#679460',
    500: '#226822',
    950: '#000000',
  },
}
SCSS
$custom: #226822;
$custom-light: #679460;
$custom-dark: #000000;
JSON
{
  "hex": "#226822",
  "rgb": {
    "r": 34,
    "g": 104,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.45735,
    "c": 0.12498,
    "h": 143.2
  },
  "luminance": 0.10356
}

Semantic roles & 50–950 ramp

primary
#226822
secondary
#9C4A9C
accent
#4EDADA
background
#F6F9F5
surface
#EBF1EA
border
#C6CBC6
text
#070D05
muted
#7A7E79

Preview Lab

Preview with #226822

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

Preview Lab → · Contrast checker → · Palette generator →

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