#227F4C#227F4C

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

Color values

HEX#227F4C
RGBrgb(34, 127, 76)
HSLhsl(147, 58%, 32%)
HSVhsv(147, 73%, 50%)
CMYKcmyk(73.2%, 0%, 40.2%, 50.2%)
CIE-LABlab(47.03, -39.20, 20.18)
CIE-LCHlch(47.03, 44.09, 152.75°)
OKLaboklab(52.99% -0.1058 0.0504)
OKLCHoklch(52.99% 0.117 154.5)
XYZxyz(9.5527, 16.0395, 9.4286)
Luminance0.1604 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F4C #7F2255
analogous
#277F22 #227F4C #227F7B
triadic
#227F4C #4C227F #7F4C22
tetradic
#227F4C #22277F #7F2255 #7F7B22
square
#227F4C #22277F #7F2255 #7F7B22
split-complementary
#227F4C #7B227F #7F2227
monochromatic
#081E12 #154F2F #227F4C #2FAF69 #4CCF87

Accessibility & contrast

On white

4.99
#227F4C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#227F4C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F4C
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F4C#FFFFFF#000000##FFFFFF
##227F4C1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7449
Deuteranopia (green-blind)
#736C4F
Tritanopia (blue-blind)
#007E72
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #227f4c;
/* rgb */ color: rgb(34, 127, 76);
/* oklch */ color: oklch(53.0% 0.117 154.5);
Tailwind
colors: {
  custom: {
    50: '#6ba57e',
    500: '#227f4c',
    950: '#000000',
  },
}
SCSS
$custom: #227f4c;
$custom-light: #6ba57e;
$custom-dark: #000000;
JSON
{
  "hex": "#227f4c",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 76
  },
  "hsl": {
    "h": 147.097,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52992,
    "c": 0.11721,
    "h": 154.5
  },
  "luminance": 0.16041
}

Semantic roles & 50–950 ramp

primary
#227F4C
secondary
#B24B83
accent
#479BE1
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #227F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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