#217B31#217B31

#217B31 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.138 H 146.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#217B31
RGBrgb(33, 123, 49)
HSLhsl(131, 58%, 31%)
HSVhsv(131, 73%, 48%)
CMYKcmyk(73.2%, 0%, 60.2%, 51.8%)
CIE-LABlab(45.23, -42.44, 32.51)
CIE-LCHlch(45.23, 53.46, 142.54°)
OKLaboklab(51.37% -0.1145 0.077)
OKLCHoklch(51.37% 0.138 146.1)
XYZxyz(8.2640, 14.7101, 5.3089)
Luminance0.1471 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B31 #7B216B
analogous
#3E7B21 #217B31 #217B5E
triadic
#217B31 #31217B #7B3121
tetradic
#217B31 #213E7B #7B216B #7B5E21
square
#217B31 #213E7B #7B216B #7B5E21
split-complementary
#217B31 #5E217B #7B213E
monochromatic
#071A0B #144B1E #217B31 #2EAB44 #48CE60

Accessibility & contrast

On white

5.33
#217B31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#217B31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217B31
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217B31#FFFFFF#000000##FFFFFF
##217B311.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D702A
Deuteranopia (green-blind)
#726837
Tritanopia (blue-blind)
#00786B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217b31;
/* rgb */ color: rgb(33, 123, 49);
/* oklch */ color: oklch(51.4% 0.138 146.1);
Tailwind
colors: {
  custom: {
    50: '#6aa26b',
    500: '#217b31',
    950: '#000000',
  },
}
SCSS
$custom: #217b31;
$custom-light: #6aa26b;
$custom-dark: #000000;
JSON
{
  "hex": "#217b31",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 49
  },
  "hsl": {
    "h": 130.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51374,
    "c": 0.13799,
    "h": 146.1
  },
  "luminance": 0.14711
}

Semantic roles & 50–950 ramp

primary
#217B31
secondary
#AE4A9C
accent
#47C6E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #217B31

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

Preview Lab → · Contrast checker → · Palette generator →

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