#217A1B#217A1B

#217A1B is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.153 H 142.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#217A1B
RGBrgb(33, 122, 27)
HSLhsl(116, 64%, 29%)
HSVhsv(116, 78%, 48%)
CMYKcmyk(73%, 0%, 77.9%, 52.2%)
CIE-LABlab(44.69, -44.46, 41.71)
CIE-LCHlch(44.69, 60.96, 136.82°)
OKLaboklab(50.86% -0.121 0.094)
OKLCHoklch(50.86% 0.153 142.2)
XYZxyz(7.7841, 14.3207, 3.3906)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217A1B #741B7A
analogous
#517A1B #217A1B #1B7A45
triadic
#217A1B #1B217A #7A1B21
tetradic
#217A1B #1B517A #741B7A #7A451B
square
#217A1B #1B517A #741B7A #7A451B
split-complementary
#217A1B #451B7A #7A1B51
monochromatic
#071906 #134810 #217A1B #2FAC26 #45D43C

Accessibility & contrast

On white

5.43
#217A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#217A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217A1B
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217A1B#FFFFFF#000000##FFFFFF
##217A1B1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#077668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #217a1b;
/* rgb */ color: rgb(33, 122, 27);
/* oklch */ color: oklch(50.9% 0.153 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ba15f',
    500: '#217a1b',
    950: '#000000',
  },
}
SCSS
$custom: #217a1b;
$custom-light: #6ba15f;
$custom-dark: #000000;
JSON
{
  "hex": "#217a1b",
  "rgb": {
    "r": 33,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 116.211,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50858,
    "c": 0.15321,
    "h": 142.2
  },
  "luminance": 0.14322
}

Semantic roles & 50–950 ramp

primary
#217A1B
secondary
#A743AE
accent
#41E7DC
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #217A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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