#227A20#227A20

#227A20 is a mid, vivid green. Relative luminance 0.144; OKLCH L 50.9% C 0.150 H 142.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#227A20
RGBrgb(34, 122, 32)
HSLhsl(119, 58%, 30%)
HSVhsv(119, 74%, 48%)
CMYKcmyk(72.1%, 0%, 73.8%, 52.2%)
CIE-LABlab(44.75, -43.83, 39.82)
CIE-LCHlch(44.75, 59.22, 137.74°)
OKLaboklab(50.93% -0.1191 0.0907)
OKLCHoklch(50.93% 0.15 142.7)
XYZxyz(7.8795, 14.3626, 3.7232)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A20 #78207A
analogous
#4F7A20 #227A20 #207A4B
triadic
#227A20 #20227A #7A2022
tetradic
#227A20 #204F7A #78207A #7A4B20
square
#227A20 #204F7A #78207A #7A4B20
split-complementary
#227A20 #4B207A #7A204F
monochromatic
#071907 #144A13 #227A20 #30AA2D #49CE46

Accessibility & contrast

On white

5.42
#227A20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #227A20
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A20#FFFFFF#000000##FFFFFF
##227A201.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E11
Deuteranopia (green-blind)
#736729
Tritanopia (blue-blind)
#087668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a20;
/* rgb */ color: rgb(34, 122, 32);
/* oklch */ color: oklch(50.9% 0.150 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ba161',
    500: '#227a20',
    950: '#000000',
  },
}
SCSS
$custom: #227a20;
$custom-light: #6ba161;
$custom-dark: #000000;
JSON
{
  "hex": "#227a20",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 32
  },
  "hsl": {
    "h": 118.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50925,
    "c": 0.14971,
    "h": 142.7
  },
  "luminance": 0.14363
}

Semantic roles & 50–950 ramp

primary
#227A20
secondary
#AB49AD
accent
#46E2DE
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #227A20

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

Preview Lab → · Contrast checker → · Palette generator →

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