#227A23#227A23

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

Color values

HEX#227A23
RGBrgb(34, 122, 35)
HSLhsl(121, 56%, 31%)
HSVhsv(121, 72%, 48%)
CMYKcmyk(72.1%, 0%, 71.3%, 52.2%)
CIE-LABlab(44.77, -43.54, 38.58)
CIE-LCHlch(44.77, 58.18, 138.45°)
OKLaboklab(50.95% -0.1182 0.0885)
OKLCHoklch(50.95% 0.148 143.2)
XYZxyz(7.9221, 14.3796, 3.9478)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227A23 #7A2279
analogous
#4D7A22 #227A23 #227A4F
triadic
#227A23 #23227A #7A2322
tetradic
#227A23 #224D7A #7A2279 #7A4F22
square
#227A23 #224D7A #7A2279 #7A4F22
split-complementary
#227A23 #4F227A #7A224D
monochromatic
#071A08 #154A15 #227A23 #2FAA31 #4ACD4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##227A23#FFFFFF#000000##FFFFFF
##227A231.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)
#7D6E16
Deuteranopia (green-blind)
#72672B
Tritanopia (blue-blind)
#077668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #227a23;
/* rgb */ color: rgb(34, 122, 35);
/* oklch */ color: oklch(51.0% 0.148 143.2);
Tailwind
colors: {
  custom: {
    50: '#6ba163',
    500: '#227a23',
    950: '#000000',
  },
}
SCSS
$custom: #227a23;
$custom-light: #6ba163;
$custom-dark: #000000;
JSON
{
  "hex": "#227a23",
  "rgb": {
    "r": 34,
    "g": 122,
    "b": 35
  },
  "hsl": {
    "h": 120.682,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.50953,
    "c": 0.14764,
    "h": 143.2
  },
  "luminance": 0.1438
}

Semantic roles & 50–950 ramp

primary
#227A23
secondary
#AD4BAC
accent
#48DEE0
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #227A23

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

Preview Lab → · Contrast checker → · Palette generator →

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