#227A17#227A17

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

Color values

HEX#227A17
RGBrgb(34, 122, 23)
HSLhsl(113, 68%, 28%)
HSVhsv(113, 81%, 48%)
CMYKcmyk(72.1%, 0%, 81.1%, 52.2%)
CIE-LABlab(44.69, -44.56, 43.14)
CIE-LCHlch(44.69, 62.02, 135.92°)
OKLaboklab(50.86% -0.1215 0.0963)
OKLCHoklch(50.86% 0.155 141.6)
XYZxyz(7.7734, 14.3202, 3.1648)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A17 #6F177A
analogous
#537A17 #227A17 #177A3D
triadic
#227A17 #17227A #7A1722
tetradic
#227A17 #17537A #6F177A #7A3D17
square
#227A17 #17537A #6F177A #7A3D17
split-complementary
#227A17 #3D177A #7A1753
monochromatic
#071A05 #14470D #227A17 #30AD21 #45D933

Accessibility & contrast

On white

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

On black

3.86
#227A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##227A17#FFFFFF#000000##FFFFFF
##227A171.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#0C7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a17;
/* rgb */ color: rgb(34, 122, 23);
/* oklch */ color: oklch(50.9% 0.155 141.6);
Tailwind
colors: {
  custom: {
    50: '#6ca15d',
    500: '#227a17',
    950: '#000000',
  },
}
SCSS
$custom: #227a17;
$custom-light: #6ca15d;
$custom-dark: #000000;
JSON
{
  "hex": "#227a17",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 113.333,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50857,
    "c": 0.15509,
    "h": 141.6
  },
  "luminance": 0.14321
}

Semantic roles & 50–950 ramp

primary
#227A17
secondary
#A23EAF
accent
#3DEBD8
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #227A17

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

Preview Lab → · Contrast checker → · Palette generator →

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