#226820#226820

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

Color values

HEX#226820
RGBrgb(34, 104, 32)
HSLhsl(118, 53%, 27%)
HSVhsv(118, 69%, 41%)
CMYKcmyk(67.3%, 0%, 69.2%, 59.2%)
CIE-LABlab(38.45, -37.07, 33.12)
CIE-LCHlch(38.45, 49.71, 138.22°)
OKLaboklab(45.71% -0.1008 0.0766)
OKLCHoklch(45.71% 0.127 142.8)
XYZxyz(5.8704, 10.3444, 3.0535)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#226820 #662068
analogous
#466820 #226820 #206842
triadic
#226820 #202268 #682022
tetradic
#226820 #204668 #662068 #684220
square
#226820 #204668 #662068 #684220
split-complementary
#226820 #422068 #682046
monochromatic
#081707 #133912 #226820 #31972E #42C43F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##226820#FFFFFF#000000##FFFFFF
##2268201.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)
#6A5E17
Deuteranopia (green-blind)
#625826
Tritanopia (blue-blind)
#146559
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #226820;
/* rgb */ color: rgb(34, 104, 32);
/* oklch */ color: oklch(45.7% 0.127 142.8);
Tailwind
colors: {
  custom: {
    50: '#67945f',
    500: '#226820',
    950: '#000000',
  },
}
SCSS
$custom: #226820;
$custom-light: #67945f;
$custom-dark: #000000;
JSON
{
  "hex": "#226820",
  "rgb": {
    "r": 34,
    "g": 104,
    "b": 32
  },
  "hsl": {
    "h": 118.333,
    "s": 52.941,
    "l": 26.667
  },
  "oklch": {
    "l": 0.45713,
    "c": 0.12661,
    "h": 142.8
  },
  "luminance": 0.10345
}

Semantic roles & 50–950 ramp

primary
#226820
secondary
#9A489C
accent
#4BDCD8
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#070D05
muted
#7A7E79

Preview Lab

Preview with #226820

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

Preview Lab → · Contrast checker → · Palette generator →

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