#227C18#227C18

#227C18 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.4% C 0.157 H 141.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#227C18
RGBrgb(34, 124, 24)
HSLhsl(114, 68%, 29%)
HSVhsv(114, 81%, 49%)
CMYKcmyk(72.6%, 0%, 80.6%, 51.4%)
CIE-LABlab(45.39, -45.19, 43.48)
CIE-LCHlch(45.39, 62.71, 136.11°)
OKLaboklab(51.44% -0.1232 0.0972)
OKLCHoklch(51.44% 0.157 141.7)
XYZxyz(8.0318, 14.8205, 3.3013)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C18 #72187C
analogous
#547C18 #227C18 #187C40
triadic
#227C18 #18227C #7C1822
tetradic
#227C18 #18547C #72187C #7C4018
square
#227C18 #18547C #72187C #7C4018
split-complementary
#227C18 #40187C #7C1854
monochromatic
#071A05 #14490E #227C18 #30AF22 #46D836

Accessibility & contrast

On white

5.30
#227C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#227C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C18
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C18#FFFFFF#000000##FFFFFF
##227C181.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#756924
Tritanopia (blue-blind)
#0A7869
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227c18;
/* rgb */ color: rgb(34, 124, 24);
/* oklch */ color: oklch(51.4% 0.157 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ca35d',
    500: '#227c18',
    950: '#000000',
  },
}
SCSS
$custom: #227c18;
$custom-light: #6ca35d;
$custom-dark: #000000;
JSON
{
  "hex": "#227c18",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 114,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51438,
    "c": 0.15692,
    "h": 141.7
  },
  "luminance": 0.14821
}

Semantic roles & 50–950 ramp

primary
#227C18
secondary
#A53FB1
accent
#3DEAD9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227C18

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

Preview Lab → · Contrast checker → · Palette generator →

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