#217B4C#217B4C

#217B4C is a mid, moderate green. Relative luminance 0.150; OKLCH L 51.9% C 0.112 H 155.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#217B4C
RGBrgb(33, 123, 76)
HSLhsl(149, 58%, 31%)
HSVhsv(149, 73%, 48%)
CMYKcmyk(73.2%, 0%, 38.2%, 51.8%)
CIE-LABlab(45.65, -37.71, 18.34)
CIE-LCHlch(45.65, 41.93, 154.06°)
OKLaboklab(51.85% -0.102 0.046)
OKLCHoklch(51.85% 0.112 155.7)
XYZxyz(9.0138, 15.0100, 9.2583)
Luminance0.1501 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B4C #7B2150
analogous
#237B21 #217B4C #217B79
triadic
#217B4C #4C217B #7B4C21
tetradic
#217B4C #21237B #7B2150 #7B7921
square
#217B4C #21237B #7B2150 #7B7921
split-complementary
#217B4C #79217B #7B2123
monochromatic
#071A10 #144B2E #217B4C #2EAB6A #48CE88

Accessibility & contrast

On white

5.25
#217B4C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#217B4C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217B4C
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217B4C#FFFFFF#000000##FFFFFF
##217B4C1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A7149
Deuteranopia (green-blind)
#6F694F
Tritanopia (blue-blind)
#007A6F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #217b4c;
/* rgb */ color: rgb(33, 123, 76);
/* oklch */ color: oklch(51.9% 0.112 155.7);
Tailwind
colors: {
  custom: {
    50: '#6aa27e',
    500: '#217b4c',
    950: '#000000',
  },
}
SCSS
$custom: #217b4c;
$custom-light: #6aa27e;
$custom-dark: #000000;
JSON
{
  "hex": "#217b4c",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 76
  },
  "hsl": {
    "h": 148.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51851,
    "c": 0.11187,
    "h": 155.7
  },
  "luminance": 0.15011
}

Semantic roles & 50–950 ramp

primary
#217B4C
secondary
#AE4A7E
accent
#4797E1
background
#F6FAF7
surface
#ECF3EE
border
#C7CDC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #217B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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