#227E20#227E20

#227E20 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.155 H 142.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#227E20
RGBrgb(34, 126, 32)
HSLhsl(119, 59%, 31%)
HSVhsv(119, 75%, 49%)
CMYKcmyk(73%, 0%, 74.6%, 50.6%)
CIE-LABlab(46.13, -45.26, 41.25)
CIE-LCHlch(46.13, 61.24, 137.65°)
OKLaboklab(52.07% -0.123 0.0937)
OKLCHoklch(52.07% 0.155 142.7)
XYZxyz(8.3808, 15.3652, 3.8903)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E20 #7C207E
analogous
#517E20 #227E20 #207E4D
triadic
#227E20 #20227E #7E2022
tetradic
#227E20 #20517E #7C207E #7E4D20
square
#227E20 #20517E #7C207E #7E4D20
split-complementary
#227E20 #4D207E #7E2051
monochromatic
#081C07 #154D14 #227E20 #2FAF2C #4BD048

Accessibility & contrast

On white

5.16
#227E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#227E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E20
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E20#FFFFFF#000000##FFFFFF
##227E201.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817210
Deuteranopia (green-blind)
#766A2A
Tritanopia (blue-blind)
#057A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227e20;
/* rgb */ color: rgb(34, 126, 32);
/* oklch */ color: oklch(52.1% 0.155 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ca462',
    500: '#227e20',
    950: '#000000',
  },
}
SCSS
$custom: #227e20;
$custom-light: #6ca462;
$custom-dark: #000000;
JSON
{
  "hex": "#227e20",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 118.723,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52072,
    "c": 0.1546,
    "h": 142.7
  },
  "luminance": 0.15366
}

Semantic roles & 50–950 ramp

primary
#227E20
secondary
#AF49B1
accent
#45E3DF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #227E20

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

Preview Lab → · Contrast checker → · Palette generator →

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