#217F42#217F42

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

Color values

HEX#217F42
RGBrgb(33, 127, 66)
HSLhsl(141, 59%, 31%)
HSVhsv(141, 74%, 50%)
CMYKcmyk(74%, 0%, 48%, 50.2%)
CIE-LABlab(46.84, -41.28, 25.50)
CIE-LCHlch(46.84, 48.52, 148.29°)
OKLaboklab(52.77% -0.1111 0.0625)
OKLCHoklch(52.77% 0.127 150.7)
XYZxyz(9.1992, 15.8944, 7.7363)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F42 #7F215E
analogous
#2F7F21 #217F42 #217F71
triadic
#217F42 #42217F #7F4221
tetradic
#217F42 #212F7F #7F215E #7F7121
square
#217F42 #212F7F #7F215E #7F7121
split-complementary
#217F42 #71217F #7F212F
monochromatic
#081E10 #144E29 #217F42 #2EB05B #4AD079

Accessibility & contrast

On white

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

On black

4.18
#217F42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##217F42#FFFFFF#000000##FFFFFF
##217F421.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80743D
Deuteranopia (green-blind)
#746C46
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #217f42;
/* rgb */ color: rgb(33, 127, 66);
/* oklch */ color: oklch(52.8% 0.127 150.7);
Tailwind
colors: {
  custom: {
    50: '#6ba577',
    500: '#217f42',
    950: '#000000',
  },
}
SCSS
$custom: #217f42;
$custom-light: #6ba577;
$custom-dark: #000000;
JSON
{
  "hex": "#217f42",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 66
  },
  "hsl": {
    "h": 141.064,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52774,
    "c": 0.12745,
    "h": 150.7
  },
  "luminance": 0.15895
}

Semantic roles & 50–950 ramp

primary
#217F42
secondary
#B24A8D
accent
#46ABE2
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #217F42

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

Preview Lab → · Contrast checker → · Palette generator →

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