#217C42#217C42

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

Color values

HEX#217C42
RGBrgb(33, 124, 66)
HSLhsl(142, 58%, 31%)
HSVhsv(142, 73%, 49%)
CMYKcmyk(73.4%, 0%, 46.8%, 51.4%)
CIE-LABlab(45.81, -40.09, 24.19)
CIE-LCHlch(45.81, 46.83, 148.89°)
OKLaboklab(51.93% -0.1079 0.0595)
OKLCHoklch(51.93% 0.123 151.2)
XYZxyz(8.8175, 15.1310, 7.6091)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217C42 #7C215B
analogous
#2D7C21 #217C42 #217C6F
triadic
#217C42 #42217C #7C4221
tetradic
#217C42 #212D7C #7C215B #7C6F21
square
#217C42 #212D7C #7C215B #7C6F21
split-complementary
#217C42 #6F217C #7C212D
monochromatic
#071B0F #144C28 #217C42 #2EAC5C #49CF79

Accessibility & contrast

On white

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

On black

4.03
#217C42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##217C42#FFFFFF#000000##FFFFFF
##217C421.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #217c42;
/* rgb */ color: rgb(33, 124, 66);
/* oklch */ color: oklch(51.9% 0.123 151.2);
Tailwind
colors: {
  custom: {
    50: '#6aa377',
    500: '#217c42',
    950: '#000000',
  },
}
SCSS
$custom: #217c42;
$custom-light: #6aa377;
$custom-dark: #000000;
JSON
{
  "hex": "#217c42",
  "rgb": {
    "r": 33,
    "g": 124,
    "b": 66
  },
  "hsl": {
    "h": 141.758,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51929,
    "c": 0.12324,
    "h": 151.2
  },
  "luminance": 0.15132
}

Semantic roles & 50–950 ramp

primary
#217C42
secondary
#AF4A8A
accent
#47A9E1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #217C42

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

Preview Lab → · Contrast checker → · Palette generator →

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