#227F20#227F20

#227F20 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.156 H 142.7°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#227F20
RGBrgb(34, 127, 32)
HSLhsl(119, 60%, 31%)
HSVhsv(119, 75%, 50%)
CMYKcmyk(73.2%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.47, -45.61, 41.60)
CIE-LCHlch(46.47, 61.73, 137.63°)
OKLaboklab(52.36% -0.1239 0.0944)
OKLCHoklch(52.36% 0.156 142.7)
XYZxyz(8.5093, 15.6222, 3.9332)
Luminance0.1562 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F20 #7D207F
analogous
#517F20 #227F20 #207F4D
triadic
#227F20 #20227F #7F2022
tetradic
#227F20 #20517F #7D207F #7F4D20
square
#227F20 #20517F #7D207F #7F4D20
split-complementary
#227F20 #4D207F #7F2051
monochromatic
#081D07 #154E14 #227F20 #2FB02C #4BD148

Accessibility & contrast

On white

5.09
#227F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#227F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F20
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F20#FFFFFF#000000##FFFFFF
##227F201.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#047B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f20;
/* rgb */ color: rgb(34, 127, 32);
/* oklch */ color: oklch(52.4% 0.156 142.7);
Tailwind
colors: {
  custom: {
    50: '#6da562',
    500: '#227f20',
    950: '#000000',
  },
}
SCSS
$custom: #227f20;
$custom-light: #6da562;
$custom-dark: #000000;
JSON
{
  "hex": "#227f20",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 118.737,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52357,
    "c": 0.1558,
    "h": 142.7
  },
  "luminance": 0.15623
}

Semantic roles & 50–950 ramp

primary
#227F20
secondary
#B049B2
accent
#45E3E0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #227F20

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

Preview Lab → · Contrast checker → · Palette generator →

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