#217F40#217F40

#217F40 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.129 H 150.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#217F40
RGBrgb(33, 127, 64)
HSLhsl(140, 59%, 31%)
HSVhsv(140, 74%, 50%)
CMYKcmyk(74%, 0%, 49.6%, 50.2%)
CIE-LABlab(46.81, -41.63, 26.55)
CIE-LCHlch(46.81, 49.38, 147.47°)
OKLaboklab(52.74% -0.112 0.0648)
OKLCHoklch(52.74% 0.129 150)
XYZxyz(9.1412, 15.8712, 7.4312)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F40 #7F2160
analogous
#317F21 #217F40 #217F6F
triadic
#217F40 #40217F #7F4021
tetradic
#217F40 #21317F #7F2160 #7F6F21
square
#217F40 #21317F #7F2160 #7F6F21
split-complementary
#217F40 #6F217F #7F2131
monochromatic
#081E0F #144E28 #217F40 #2EB058 #4AD076

Accessibility & contrast

On white

5.03
#217F40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#217F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217F40
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217F40#FFFFFF#000000##FFFFFF
##217F401.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80743B
Deuteranopia (green-blind)
#756C44
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #217f40;
/* rgb */ color: rgb(33, 127, 64);
/* oklch */ color: oklch(52.7% 0.129 150.0);
Tailwind
colors: {
  custom: {
    50: '#6ba576',
    500: '#217f40',
    950: '#000000',
  },
}
SCSS
$custom: #217f40;
$custom-light: #6ba576;
$custom-dark: #000000;
JSON
{
  "hex": "#217f40",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 139.787,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52738,
    "c": 0.12941,
    "h": 150
  },
  "luminance": 0.15872
}

Semantic roles & 50–950 ramp

primary
#217F40
secondary
#B24A90
accent
#46AEE2
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #217F40

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

Preview Lab → · Contrast checker → · Palette generator →

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