#227A1C#227A1C

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

Color values

HEX#227A1C
RGBrgb(34, 122, 28)
HSLhsl(116, 63%, 29%)
HSVhsv(116, 77%, 48%)
CMYKcmyk(72.1%, 0%, 77%, 52.2%)
CIE-LABlab(44.72, -44.18, 41.38)
CIE-LCHlch(44.72, 60.53, 136.88°)
OKLaboklab(50.89% -0.1203 0.0934)
OKLCHoklch(50.89% 0.152 142.2)
XYZxyz(7.8284, 14.3421, 3.4541)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A1C #741C7A
analogous
#517A1C #227A1C #1C7A45
triadic
#227A1C #1C227A #7A1C22
tetradic
#227A1C #1C517A #741C7A #7A451C
square
#227A1C #1C517A #741C7A #7A451C
split-complementary
#227A1C #451C7A #7A1C51
monochromatic
#071906 #144811 #227A1C #30AC27 #47D33E

Accessibility & contrast

On white

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

On black

3.87
#227A1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##227A1C#FFFFFF#000000##FFFFFF
##227A1C1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E09
Deuteranopia (green-blind)
#736726
Tritanopia (blue-blind)
#0A7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a1c;
/* rgb */ color: rgb(34, 122, 28);
/* oklch */ color: oklch(50.9% 0.152 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ca15f',
    500: '#227a1c',
    950: '#000000',
  },
}
SCSS
$custom: #227a1c;
$custom-light: #6ca15f;
$custom-dark: #000000;
JSON
{
  "hex": "#227a1c",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 28
  },
  "hsl": {
    "h": 116.17,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50892,
    "c": 0.15226,
    "h": 142.2
  },
  "luminance": 0.14343
}

Semantic roles & 50–950 ramp

primary
#227A1C
secondary
#A744AE
accent
#42E6DB
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #227A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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