#217B2B#217B2B

#217B2B is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.143 H 144.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#217B2B
RGBrgb(33, 123, 43)
HSLhsl(127, 58%, 31%)
HSVhsv(127, 73%, 48%)
CMYKcmyk(73.2%, 0%, 65%, 51.8%)
CIE-LABlab(45.17, -43.21, 35.38)
CIE-LCHlch(45.17, 55.85, 140.70°)
OKLaboklab(51.3% -0.1168 0.0826)
OKLCHoklch(51.3% 0.143 144.7)
XYZxyz(8.1457, 14.6628, 4.6859)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B2B #7B2171
analogous
#447B21 #217B2B #217B58
triadic
#217B2B #2B217B #7B2B21
tetradic
#217B2B #21447B #7B2171 #7B5821
square
#217B2B #21447B #7B2171 #7B5821
split-complementary
#217B2B #58217B #7B2144
monochromatic
#071A09 #144B1A #217B2B #2EAB3C #48CE57

Accessibility & contrast

On white

5.34
#217B2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #217B2B
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217B2B#FFFFFF#000000##FFFFFF
##217B2B1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F22
Deuteranopia (green-blind)
#736832
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217b2b;
/* rgb */ color: rgb(33, 123, 43);
/* oklch */ color: oklch(51.3% 0.143 144.7);
Tailwind
colors: {
  custom: {
    50: '#6ba268',
    500: '#217b2b',
    950: '#000000',
  },
}
SCSS
$custom: #217b2b;
$custom-light: #6ba268;
$custom-dark: #000000;
JSON
{
  "hex": "#217b2b",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 43
  },
  "hsl": {
    "h": 126.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51299,
    "c": 0.1431,
    "h": 144.7
  },
  "luminance": 0.14664
}

Semantic roles & 50–950 ramp

primary
#217B2B
secondary
#AE4AA3
accent
#47D0E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #217B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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