#227F4F#227F4F

#227F4F is a mid, moderate green. Relative luminance 0.161; OKLCH L 53.1% C 0.114 H 156.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#227F4F
RGBrgb(34, 127, 79)
HSLhsl(149, 58%, 32%)
HSVhsv(149, 73%, 50%)
CMYKcmyk(73.2%, 0%, 37.8%, 50.2%)
CIE-LABlab(47.08, -38.57, 18.55)
CIE-LCHlch(47.08, 42.80, 154.31°)
OKLaboklab(53.06% -0.1043 0.0465)
OKLCHoklch(53.06% 0.114 156)
XYZxyz(9.6594, 16.0822, 9.9907)
Luminance0.1608 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F4F #7F2252
analogous
#247F22 #227F4F #227F7E
triadic
#227F4F #4F227F #7F4F22
tetradic
#227F4F #22247F #7F2252 #7F7E22
square
#227F4F #22247F #7F2252 #7F7E22
split-complementary
#227F4F #7E227F #7F2224
monochromatic
#081E13 #154F31 #227F4F #2FAF6D #4CCF8C

Accessibility & contrast

On white

4.98
#227F4F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#227F4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F4F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F4F#FFFFFF#000000##FFFFFF
##227F4F1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E754C
Deuteranopia (green-blind)
#736C52
Tritanopia (blue-blind)
#007E73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #227f4f;
/* rgb */ color: rgb(34, 127, 79);
/* oklch */ color: oklch(53.1% 0.114 156.0);
Tailwind
colors: {
  custom: {
    50: '#6ba580',
    500: '#227f4f',
    950: '#000000',
  },
}
SCSS
$custom: #227f4f;
$custom-light: #6ba580;
$custom-dark: #000000;
JSON
{
  "hex": "#227f4f",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 79
  },
  "hsl": {
    "h": 149.032,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53057,
    "c": 0.11424,
    "h": 156
  },
  "luminance": 0.16083
}

Semantic roles & 50–950 ramp

primary
#227F4F
secondary
#B24B80
accent
#4796E1
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #227F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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