#227D18#227D18

#227D18 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.158 H 141.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#227D18
RGBrgb(34, 125, 24)
HSLhsl(114, 68%, 29%)
HSVhsv(114, 81%, 49%)
CMYKcmyk(72.8%, 0%, 80.8%, 51%)
CIE-LABlab(45.73, -45.54, 43.81)
CIE-LCHlch(45.73, 63.19, 136.11°)
OKLaboklab(51.73% -0.1241 0.0979)
OKLCHoklch(51.73% 0.158 141.7)
XYZxyz(8.1577, 15.0724, 3.3433)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D18 #73187D
analogous
#557D18 #227D18 #187D41
triadic
#227D18 #18227D #7D1822
tetradic
#227D18 #18557D #73187D #7D4118
square
#227D18 #18557D #73187D #7D4118
split-complementary
#227D18 #41187D #7D1855
monochromatic
#071A05 #144A0E #227D18 #30B022 #47D937

Accessibility & contrast

On white

5.23
#227D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#227D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D18
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D18#FFFFFF#000000##FFFFFF
##227D181.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#766A24
Tritanopia (blue-blind)
#09796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227d18;
/* rgb */ color: rgb(34, 125, 24);
/* oklch */ color: oklch(51.7% 0.158 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ca45e',
    500: '#227d18',
    950: '#000000',
  },
}
SCSS
$custom: #227d18;
$custom-light: #6ca45e;
$custom-dark: #000000;
JSON
{
  "hex": "#227d18",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 114.059,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51725,
    "c": 0.15809,
    "h": 141.7
  },
  "luminance": 0.15073
}

Semantic roles & 50–950 ramp

primary
#227D18
secondary
#A63FB2
accent
#3DEBD9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227D18

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

Preview Lab → · Contrast checker → · Palette generator →

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