#227A18#227A18

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

Color values

HEX#227A18
RGBrgb(34, 122, 24)
HSLhsl(114, 67%, 29%)
HSVhsv(114, 80%, 48%)
CMYKcmyk(72.1%, 0%, 80.3%, 52.2%)
CIE-LABlab(44.69, -44.48, 42.81)
CIE-LCHlch(44.69, 61.74, 136.10°)
OKLaboklab(50.86% -0.1213 0.0958)
OKLCHoklch(50.86% 0.155 141.7)
XYZxyz(7.7837, 14.3243, 3.2186)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A18 #70187A
analogous
#537A18 #227A18 #187A3F
triadic
#227A18 #18227A #7A1822
tetradic
#227A18 #18537A #70187A #7A3F18
square
#227A18 #18537A #70187A #7A3F18
split-complementary
#227A18 #3F187A #7A1853
monochromatic
#071A05 #14470E #227A18 #30AD22 #46D735

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227A18#FFFFFF#000000##FFFFFF
##227A181.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)
#7D6E01
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#0C7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a18;
/* rgb */ color: rgb(34, 122, 24);
/* oklch */ color: oklch(50.9% 0.155 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ca15d',
    500: '#227a18',
    950: '#000000',
  },
}
SCSS
$custom: #227a18;
$custom-light: #6ca15d;
$custom-dark: #000000;
JSON
{
  "hex": "#227a18",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 113.878,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50863,
    "c": 0.15456,
    "h": 141.7
  },
  "luminance": 0.14325
}

Semantic roles & 50–950 ramp

primary
#227A18
secondary
#A33FAF
accent
#3EEAD8
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #227A18

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

Preview Lab → · Contrast checker → · Palette generator →

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