#217C40#217C40

#217C40 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.125 H 150.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#217C40
RGBrgb(33, 124, 64)
HSLhsl(140, 58%, 31%)
HSVhsv(140, 73%, 49%)
CMYKcmyk(73.4%, 0%, 48.4%, 51.4%)
CIE-LABlab(45.78, -40.45, 25.26)
CIE-LCHlch(45.78, 47.69, 148.02°)
OKLaboklab(51.89% -0.1089 0.0618)
OKLCHoklch(51.89% 0.125 150.4)
XYZxyz(8.7595, 15.1078, 7.3040)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217C40 #7C215D
analogous
#2F7C21 #217C40 #217C6D
triadic
#217C40 #40217C #7C4021
tetradic
#217C40 #212F7C #7C215D #7C6D21
square
#217C40 #212F7C #7C215D #7C6D21
split-complementary
#217C40 #6D217C #7C212F
monochromatic
#071B0E #144C27 #217C40 #2EAC59 #49CF76

Accessibility & contrast

On white

5.22
#217C40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#217C40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217C40
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217C40#FFFFFF#000000##FFFFFF
##217C401.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D713B
Deuteranopia (green-blind)
#726944
Tritanopia (blue-blind)
#007A6E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #217c40;
/* rgb */ color: rgb(33, 124, 64);
/* oklch */ color: oklch(51.9% 0.125 150.4);
Tailwind
colors: {
  custom: {
    50: '#6aa376',
    500: '#217c40',
    950: '#000000',
  },
}
SCSS
$custom: #217c40;
$custom-light: #6aa376;
$custom-dark: #000000;
JSON
{
  "hex": "#217c40",
  "rgb": {
    "r": 33,
    "g": 124,
    "b": 64
  },
  "hsl": {
    "h": 140.44,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51893,
    "c": 0.12522,
    "h": 150.4
  },
  "luminance": 0.15109
}

Semantic roles & 50–950 ramp

primary
#217C40
secondary
#AF4A8C
accent
#47ADE1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #217C40

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

Preview Lab → · Contrast checker → · Palette generator →

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