#227A1A#227A1A

#227A1A is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.153 H 141.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#227A1A
RGBrgb(34, 122, 26)
HSLhsl(115, 65%, 29%)
HSVhsv(115, 79%, 48%)
CMYKcmyk(72.1%, 0%, 78.7%, 52.2%)
CIE-LABlab(44.71, -44.34, 42.11)
CIE-LCHlch(44.71, 61.15, 136.48°)
OKLaboklab(50.88% -0.1208 0.0946)
OKLCHoklch(50.88% 0.153 141.9)
XYZxyz(7.8052, 14.3329, 3.3323)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A1A #721A7A
analogous
#527A1A #227A1A #1A7A42
triadic
#227A1A #1A227A #7A1A22
tetradic
#227A1A #1A527A #721A7A #7A421A
square
#227A1A #1A527A #721A7A #7A421A
split-complementary
#227A1A #421A7A #7A1A52
monochromatic
#071905 #14480F #227A1A #30AC25 #46D539

Accessibility & contrast

On white

5.43
#227A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#227A1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A1A
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A1A#FFFFFF#000000##FFFFFF
##227A1A1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E05
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#0B7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a1a;
/* rgb */ color: rgb(34, 122, 26);
/* oklch */ color: oklch(50.9% 0.153 141.9);
Tailwind
colors: {
  custom: {
    50: '#6ca15e',
    500: '#227a1a',
    950: '#000000',
  },
}
SCSS
$custom: #227a1a;
$custom-light: #6ca15e;
$custom-dark: #000000;
JSON
{
  "hex": "#227a1a",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 26
  },
  "hsl": {
    "h": 115,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50877,
    "c": 0.15345,
    "h": 141.9
  },
  "luminance": 0.14334
}

Semantic roles & 50–950 ramp

primary
#227A1A
secondary
#A541AE
accent
#40E8DA
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #227A1A

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

Preview Lab → · Contrast checker → · Palette generator →

#227A1A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva