#217A42#217A42

#217A42 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.4% C 0.120 H 151.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#217A42
RGBrgb(33, 122, 66)
HSLhsl(142, 57%, 30%)
HSVhsv(142, 73%, 48%)
CMYKcmyk(73%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.13, -39.29, 23.32)
CIE-LCHlch(45.13, 45.69, 149.31°)
OKLaboklab(51.37% -0.1058 0.0574)
OKLCHoklch(51.37% 0.12 151.5)
XYZxyz(8.5694, 14.6348, 7.5264)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217A42 #7A2159
analogous
#2D7A21 #217A42 #217A6E
triadic
#217A42 #42217A #7A4221
tetradic
#217A42 #212D7A #7A2159 #7A6E21
square
#217A42 #212D7A #7A2159 #7A6E21
split-complementary
#217A42 #6E217A #7A212D
monochromatic
#071A0E #144A28 #217A42 #2EAA5C #48CD79

Accessibility & contrast

On white

5.35
#217A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#217A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217A42
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217A42#FFFFFF#000000##FFFFFF
##217A421.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3E
Deuteranopia (green-blind)
#706846
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217a42;
/* rgb */ color: rgb(33, 122, 66);
/* oklch */ color: oklch(51.4% 0.120 151.5);
Tailwind
colors: {
  custom: {
    50: '#69a177',
    500: '#217a42',
    950: '#000000',
  },
}
SCSS
$custom: #217a42;
$custom-light: #69a177;
$custom-dark: #000000;
JSON
{
  "hex": "#217a42",
  "rgb": {
    "r": 33,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 142.247,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51365,
    "c": 0.12041,
    "h": 151.5
  },
  "luminance": 0.14636
}

Semantic roles & 50–950 ramp

primary
#217A42
secondary
#AD4A88
accent
#47A8E1
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #217A42

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

Preview Lab → · Contrast checker → · Palette generator →

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