#217B2A#217B2A

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

Color values

HEX#217B2A
RGBrgb(33, 123, 42)
HSLhsl(126, 58%, 31%)
HSVhsv(126, 73%, 48%)
CMYKcmyk(73.2%, 0%, 65.9%, 51.8%)
CIE-LABlab(45.16, -43.33, 35.84)
CIE-LCHlch(45.16, 56.23, 140.41°)
OKLaboklab(51.29% -0.1172 0.0835)
OKLCHoklch(51.29% 0.144 144.5)
XYZxyz(8.1275, 14.6555, 4.5905)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B2A #7B2172
analogous
#457B21 #217B2A #217B57
triadic
#217B2A #2A217B #7B2A21
tetradic
#217B2A #21457B #7B2172 #7B5721
square
#217B2A #21457B #7B2172 #7B5721
split-complementary
#217B2A #57217B #7B2145
monochromatic
#071A09 #144B1A #217B2A #2EAB3A #48CE56

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217B2A#FFFFFF#000000##FFFFFF
##217B2A1.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)
#7D6F20
Deuteranopia (green-blind)
#736831
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217b2a;
/* rgb */ color: rgb(33, 123, 42);
/* oklch */ color: oklch(51.3% 0.144 144.5);
Tailwind
colors: {
  custom: {
    50: '#6ba267',
    500: '#217b2a',
    950: '#000000',
  },
}
SCSS
$custom: #217b2a;
$custom-light: #6ba267;
$custom-dark: #000000;
JSON
{
  "hex": "#217b2a",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 42
  },
  "hsl": {
    "h": 126,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51287,
    "c": 0.14391,
    "h": 144.5
  },
  "luminance": 0.14656
}

Semantic roles & 50–950 ramp

primary
#217B2A
secondary
#AE4AA4
accent
#47D2E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #217B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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