#227F4A#227F4A

#227F4A is a mid, moderate green. Relative luminance 0.160; OKLCH L 53.0% C 0.119 H 153.7°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#227F4A
RGBrgb(34, 127, 74)
HSLhsl(146, 58%, 32%)
HSVhsv(146, 73%, 50%)
CMYKcmyk(73.2%, 0%, 41.7%, 50.2%)
CIE-LABlab(46.99, -39.60, 21.26)
CIE-LCHlch(46.99, 44.95, 151.76°)
OKLaboklab(52.95% -0.1068 0.0529)
OKLCHoklch(52.95% 0.119 153.7)
XYZxyz(9.4842, 16.0122, 9.0681)
Luminance0.1601 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F4A #7F2257
analogous
#297F22 #227F4A #227F79
triadic
#227F4A #4A227F #7F4A22
tetradic
#227F4A #22297F #7F2257 #7F7922
square
#227F4A #22297F #7F2257 #7F7922
split-complementary
#227F4A #79227F #7F2229
monochromatic
#081E12 #154F2E #227F4A #2FAF66 #4CCF85

Accessibility & contrast

On white

5.00
#227F4A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#227F4A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F4A
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F4A#FFFFFF#000000##FFFFFF
##227F4A1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7446
Deuteranopia (green-blind)
#736C4E
Tritanopia (blue-blind)
#007D72
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #227f4a;
/* rgb */ color: rgb(34, 127, 74);
/* oklch */ color: oklch(53.0% 0.119 153.7);
Tailwind
colors: {
  custom: {
    50: '#6ba57d',
    500: '#227f4a',
    950: '#000000',
  },
}
SCSS
$custom: #227f4a;
$custom-light: #6ba57d;
$custom-dark: #000000;
JSON
{
  "hex": "#227f4a",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 74
  },
  "hsl": {
    "h": 145.806,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52951,
    "c": 0.11919,
    "h": 153.7
  },
  "luminance": 0.16013
}

Semantic roles & 50–950 ramp

primary
#227F4A
secondary
#B24B86
accent
#479FE1
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #227F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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