#217B42#217B42

#217B42 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.122 H 151.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#217B42
RGBrgb(33, 123, 66)
HSLhsl(142, 58%, 31%)
HSVhsv(142, 73%, 48%)
CMYKcmyk(73.2%, 0%, 46.3%, 51.8%)
CIE-LABlab(45.47, -39.69, 23.76)
CIE-LCHlch(45.47, 46.26, 149.10°)
OKLaboklab(51.65% -0.1069 0.0585)
OKLCHoklch(51.65% 0.122 151.3)
XYZxyz(8.6928, 14.8816, 7.5675)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B42 #7B215A
analogous
#2D7B21 #217B42 #217B6F
triadic
#217B42 #42217B #7B4221
tetradic
#217B42 #212D7B #7B215A #7B6F21
square
#217B42 #212D7B #7B215A #7B6F21
split-complementary
#217B42 #6F217B #7B212D
monochromatic
#071A0E #144B28 #217B42 #2EAB5C #48CE79

Accessibility & contrast

On white

5.28
#217B42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#217B42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217B42
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217B42#FFFFFF#000000##FFFFFF
##217B421.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#716946
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #217b42;
/* rgb */ color: rgb(33, 123, 66);
/* oklch */ color: oklch(51.6% 0.122 151.3);
Tailwind
colors: {
  custom: {
    50: '#6aa277',
    500: '#217b42',
    950: '#000000',
  },
}
SCSS
$custom: #217b42;
$custom-light: #6aa277;
$custom-dark: #000000;
JSON
{
  "hex": "#217b42",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 66
  },
  "hsl": {
    "h": 142,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51647,
    "c": 0.12183,
    "h": 151.3
  },
  "luminance": 0.14883
}

Semantic roles & 50–950 ramp

primary
#217B42
secondary
#AE4A89
accent
#47A8E1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #217B42

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

Preview Lab → · Contrast checker → · Palette generator →

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