#227A24#227A24

#227A24 is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.147 H 143.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#227A24
RGBrgb(34, 122, 36)
HSLhsl(121, 56%, 31%)
HSVhsv(121, 72%, 48%)
CMYKcmyk(72.1%, 0%, 70.5%, 52.2%)
CIE-LABlab(44.78, -43.44, 38.16)
CIE-LCHlch(44.78, 57.82, 138.70°)
OKLaboklab(50.96% -0.1178 0.0877)
OKLCHoklch(50.96% 0.147 143.3)
XYZxyz(7.9372, 14.3857, 4.0271)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A24 #7A2278
analogous
#4C7A22 #227A24 #227A50
triadic
#227A24 #24227A #7A2422
tetradic
#227A24 #224C7A #7A2278 #7A5022
square
#227A24 #224C7A #7A2278 #7A5022
split-complementary
#227A24 #50227A #7A224C
monochromatic
#071A08 #154A16 #227A24 #2FAA32 #4ACD4D

Accessibility & contrast

On white

5.42
#227A24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#227A24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227A24
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227A24#FFFFFF#000000##FFFFFF
##227A241.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E18
Deuteranopia (green-blind)
#72672C
Tritanopia (blue-blind)
#077669
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a24;
/* rgb */ color: rgb(34, 122, 36);
/* oklch */ color: oklch(51.0% 0.147 143.3);
Tailwind
colors: {
  custom: {
    50: '#6ba163',
    500: '#227a24',
    950: '#000000',
  },
}
SCSS
$custom: #227a24;
$custom-light: #6ba163;
$custom-dark: #000000;
JSON
{
  "hex": "#227a24",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 36
  },
  "hsl": {
    "h": 121.364,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.50963,
    "c": 0.14691,
    "h": 143.3
  },
  "luminance": 0.14387
}

Semantic roles & 50–950 ramp

primary
#227A24
secondary
#AD4BAB
accent
#48DCE0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #227A24

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

Preview Lab → · Contrast checker → · Palette generator →

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