#217E2B#217E2B

#217E2B is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.147 H 144.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#217E2B
RGBrgb(33, 126, 43)
HSLhsl(126, 58%, 31%)
HSVhsv(126, 74%, 49%)
CMYKcmyk(73.8%, 0%, 65.9%, 50.6%)
CIE-LABlab(46.20, -44.31, 36.53)
CIE-LCHlch(46.20, 57.43, 140.49°)
OKLaboklab(52.15% -0.1198 0.0851)
OKLCHoklch(52.15% 0.147 144.6)
XYZxyz(8.5235, 15.4185, 4.8119)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217E2B #7E2174
analogous
#457E21 #217E2B #217E59
triadic
#217E2B #2B217E #7E2B21
tetradic
#217E2B #21457E #7E2174 #7E5921
square
#217E2B #21457E #7E2174 #7E5921
split-complementary
#217E2B #59217E #7E2145
monochromatic
#081D0A #144E1A #217E2B #2EAE3C #4AD058

Accessibility & contrast

On white

5.14
#217E2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#217E2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217E2B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217E2B#FFFFFF#000000##FFFFFF
##217E2B1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807221
Deuteranopia (green-blind)
#766B32
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217e2b;
/* rgb */ color: rgb(33, 126, 43);
/* oklch */ color: oklch(52.2% 0.147 144.6);
Tailwind
colors: {
  custom: {
    50: '#6ba468',
    500: '#217e2b',
    950: '#000000',
  },
}
SCSS
$custom: #217e2b;
$custom-light: #6ba468;
$custom-dark: #000000;
JSON
{
  "hex": "#217e2b",
  "rgb": {
    "r": 33,
    "g": 126,
    "b": 43
  },
  "hsl": {
    "h": 126.452,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52155,
    "c": 0.14696,
    "h": 144.6
  },
  "luminance": 0.15419
}

Semantic roles & 50–950 ramp

primary
#217E2B
secondary
#B14AA6
accent
#46D1E2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #217E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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