#217C28#217C28

#217C28 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.147 H 144.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#217C28
RGBrgb(33, 124, 40)
HSLhsl(125, 58%, 31%)
HSVhsv(125, 73%, 49%)
CMYKcmyk(73.4%, 0%, 67.7%, 51.4%)
CIE-LABlab(45.48, -43.93, 37.13)
CIE-LCHlch(45.48, 57.52, 139.80°)
OKLaboklab(51.55% -0.1189 0.086)
OKLCHoklch(51.55% 0.147 144.1)
XYZxyz(8.2173, 14.8909, 4.4482)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217C28 #7C2175
analogous
#477C21 #217C28 #217C55
triadic
#217C28 #28217C #7C2821
tetradic
#217C28 #21477C #7C2175 #7C5521
square
#217C28 #21477C #7C2175 #7C5521
split-complementary
#217C28 #55217C #7C2147
monochromatic
#071B09 #144C18 #217C28 #2EAC38 #49CF53

Accessibility & contrast

On white

5.28
#217C28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#217C28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217C28
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217C28#FFFFFF#000000##FFFFFF
##217C281.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701D
Deuteranopia (green-blind)
#746930
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #217c28;
/* rgb */ color: rgb(33, 124, 40);
/* oklch */ color: oklch(51.6% 0.147 144.1);
Tailwind
colors: {
  custom: {
    50: '#6ba366',
    500: '#217c28',
    950: '#000000',
  },
}
SCSS
$custom: #217c28;
$custom-light: #6ba366;
$custom-dark: #000000;
JSON
{
  "hex": "#217c28",
  "rgb": {
    "r": 33,
    "g": 124,
    "b": 40
  },
  "hsl": {
    "h": 124.615,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51551,
    "c": 0.14677,
    "h": 144.1
  },
  "luminance": 0.14892
}

Semantic roles & 50–950 ramp

primary
#217C28
secondary
#AF4AA7
accent
#47D5E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #217C28

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

Preview Lab → · Contrast checker → · Palette generator →

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