#227F22#227F22

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

Color values

HEX#227F22
RGBrgb(34, 127, 34)
HSLhsl(120, 58%, 32%)
HSVhsv(120, 73%, 50%)
CMYKcmyk(73.2%, 0%, 73.2%, 50.2%)
CIE-LABlab(46.49, -45.43, 40.81)
CIE-LCHlch(46.49, 61.07, 138.07°)
OKLaboklab(52.38% -0.1233 0.093)
OKLCHoklch(52.38% 0.155 143)
XYZxyz(8.5373, 15.6334, 4.0807)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F22 #7F227F
analogous
#517F22 #227F22 #227F51
triadic
#227F22 #22227F #7F2222
tetradic
#227F22 #22517F #7F227F #7F5122
square
#227F22 #22517F #7F227F #7F5122
split-complementary
#227F22 #51227F #7F2251
monochromatic
#081E08 #154F15 #227F22 #2FAF2F #4CCF4C

Accessibility & contrast

On white

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

On black

4.13
#227F22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##227F22#FFFFFF#000000##FFFFFF
##227F221.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#776B2B
Tritanopia (blue-blind)
#037B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f22;
/* rgb */ color: rgb(34, 127, 34);
/* oklch */ color: oklch(52.4% 0.154 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ca563',
    500: '#227f22',
    950: '#000000',
  },
}
SCSS
$custom: #227f22;
$custom-light: #6ca563;
$custom-dark: #000000;
JSON
{
  "hex": "#227f22",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52375,
    "c": 0.1545,
    "h": 143
  },
  "luminance": 0.15634
}

Semantic roles & 50–950 ramp

primary
#227F22
secondary
#B24BB2
accent
#47E1E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #227F22

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

Preview Lab → · Contrast checker → · Palette generator →

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