#227D2A#227D2A

#227D2A is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.146 H 144.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#227D2A
RGBrgb(34, 125, 42)
HSLhsl(125, 57%, 31%)
HSVhsv(125, 73%, 49%)
CMYKcmyk(72.8%, 0%, 66.4%, 51%)
CIE-LABlab(45.87, -43.88, 36.64)
CIE-LCHlch(45.87, 57.16, 140.14°)
OKLaboklab(51.88% -0.1187 0.0852)
OKLCHoklch(51.88% 0.146 144.3)
XYZxyz(8.4107, 15.1736, 4.6756)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D2A #7D2275
analogous
#477D22 #227D2A #227D57
triadic
#227D2A #2A227D #7D2A22
tetradic
#227D2A #22477D #7D2275 #7D5722
square
#227D2A #22477D #7D2275 #7D5722
split-complementary
#227D2A #57227D #7D2247
monochromatic
#081D0A #154D1A #227D2A #2FAD3A #4BCE57

Accessibility & contrast

On white

5.20
#227D2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#227D2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D2A
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D2A#FFFFFF#000000##FFFFFF
##227D2A1.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7120
Deuteranopia (green-blind)
#756A31
Tritanopia (blue-blind)
#017A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227d2a;
/* rgb */ color: rgb(34, 125, 42);
/* oklch */ color: oklch(51.9% 0.146 144.3);
Tailwind
colors: {
  custom: {
    50: '#6ca467',
    500: '#227d2a',
    950: '#000000',
  },
}
SCSS
$custom: #227d2a;
$custom-light: #6ca467;
$custom-dark: #000000;
JSON
{
  "hex": "#227d2a",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 125.275,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51884,
    "c": 0.14614,
    "h": 144.3
  },
  "luminance": 0.15174
}

Semantic roles & 50–950 ramp

primary
#227D2A
secondary
#B04BA7
accent
#47D3E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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