#217F28#217F28

#217F28 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.4% C 0.151 H 144.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#217F28
RGBrgb(33, 127, 40)
HSLhsl(124, 59%, 31%)
HSVhsv(124, 74%, 50%)
CMYKcmyk(74%, 0%, 68.5%, 50.2%)
CIE-LABlab(46.52, -45.01, 38.26)
CIE-LCHlch(46.52, 59.07, 139.64°)
OKLaboklab(52.41% -0.1218 0.0884)
OKLCHoklch(52.41% 0.151 144)
XYZxyz(8.5990, 15.6543, 4.5755)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F28 #7F2178
analogous
#497F21 #217F28 #217F57
triadic
#217F28 #28217F #7F2821
tetradic
#217F28 #21497F #7F2178 #7F5721
square
#217F28 #21497F #7F2178 #7F5721
split-complementary
#217F28 #57217F #7F2149
monochromatic
#081E09 #144E19 #217F28 #2EB037 #4AD054

Accessibility & contrast

On white

5.08
#217F28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#217F28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217F28
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217F28#FFFFFF#000000##FFFFFF
##217F281.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81731D
Deuteranopia (green-blind)
#776B30
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f28;
/* rgb */ color: rgb(33, 127, 40);
/* oklch */ color: oklch(52.4% 0.151 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ca566',
    500: '#217f28',
    950: '#000000',
  },
}
SCSS
$custom: #217f28;
$custom-light: #6ca566;
$custom-dark: #000000;
JSON
{
  "hex": "#217f28",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 124.468,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52407,
    "c": 0.15056,
    "h": 144
  },
  "luminance": 0.15655
}

Semantic roles & 50–950 ramp

primary
#217F28
secondary
#B24AAA
accent
#46D6E2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #217F28

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

Preview Lab → · Contrast checker → · Palette generator →

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