#217842#217842

#217842 is a mid, moderate green. Relative luminance 0.141; OKLCH L 50.8% C 0.118 H 151.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#217842
RGBrgb(33, 120, 66)
HSLhsl(143, 57%, 30%)
HSVhsv(143, 73%, 47%)
CMYKcmyk(72.5%, 0%, 45%, 52.9%)
CIE-LABlab(44.45, -38.48, 22.43)
CIE-LCHlch(44.45, 44.54, 149.76°)
OKLaboklab(50.8% -0.1037 0.0554)
OKLCHoklch(50.8% 0.118 151.9)
XYZxyz(8.3263, 14.1487, 7.4454)
Luminance0.1415 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217842 #782157
analogous
#2B7821 #217842 #21786E
triadic
#217842 #422178 #784221
tetradic
#217842 #212B78 #782157 #786E21
square
#217842 #212B78 #782157 #786E21
split-complementary
#217842 #6E2178 #78212B
monochromatic
#07180D #144828 #217842 #2EA85C #47CC7A

Accessibility & contrast

On white

5.48
#217842 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#217842 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217842
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217842#FFFFFF#000000##FFFFFF
##2178421.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786E3E
Deuteranopia (green-blind)
#6E6646
Tritanopia (blue-blind)
#00766B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #217842;
/* rgb */ color: rgb(33, 120, 66);
/* oklch */ color: oklch(50.8% 0.118 151.9);
Tailwind
colors: {
  custom: {
    50: '#69a077',
    500: '#217842',
    950: '#000000',
  },
}
SCSS
$custom: #217842;
$custom-light: #69a077;
$custom-dark: #000000;
JSON
{
  "hex": "#217842",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 66
  },
  "hsl": {
    "h": 142.759,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.50801,
    "c": 0.11755,
    "h": 151.9
  },
  "luminance": 0.1415
}

Semantic roles & 50–950 ramp

primary
#217842
secondary
#AB4A86
accent
#48A6E0
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070F08
muted
#7A7E7B

Preview Lab

Preview with #217842

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

Preview Lab → · Contrast checker → · Palette generator →

#217842 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva