#217F4F#217F4F

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

Color values

HEX#217F4F
RGBrgb(33, 127, 79)
HSLhsl(149, 59%, 31%)
HSVhsv(149, 74%, 50%)
CMYKcmyk(74%, 0%, 37.8%, 50.2%)
CIE-LABlab(47.06, -38.74, 18.52)
CIE-LCHlch(47.06, 42.94, 154.45°)
OKLaboklab(53.03% -0.1048 0.0465)
OKLCHoklch(53.03% 0.115 156.1)
XYZxyz(9.6269, 16.0655, 9.9892)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F4F #7F2151
analogous
#227F21 #217F4F #217F7E
triadic
#217F4F #4F217F #7F4F21
tetradic
#217F4F #21227F #7F2151 #7F7E21
square
#217F4F #21227F #7F2151 #7F7E21
split-complementary
#217F4F #7E217F #7F2122
monochromatic
#081E13 #144E31 #217F4F #2EB06D #4AD08C

Accessibility & contrast

On white

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

On black

4.21
#217F4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##217F4F#FFFFFF#000000##FFFFFF
##217F4F1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.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: #217f4f;
/* rgb */ color: rgb(33, 127, 79);
/* oklch */ color: oklch(53.0% 0.115 156.1);
Tailwind
colors: {
  custom: {
    50: '#6aa580',
    500: '#217f4f',
    950: '#000000',
  },
}
SCSS
$custom: #217f4f;
$custom-light: #6aa580;
$custom-dark: #000000;
JSON
{
  "hex": "#217f4f",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 79
  },
  "hsl": {
    "h": 149.362,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53032,
    "c": 0.11461,
    "h": 156.1
  },
  "luminance": 0.16067
}

Semantic roles & 50–950 ramp

primary
#217F4F
secondary
#B24A7F
accent
#4696E2
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #217F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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