#217F2E#217F2E

#217F2E is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.146 H 145.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#217F2E
RGBrgb(33, 127, 46)
HSLhsl(128, 59%, 31%)
HSVhsv(128, 74%, 50%)
CMYKcmyk(74%, 0%, 63.8%, 50.2%)
CIE-LABlab(46.58, -44.31, 35.54)
CIE-LCHlch(46.58, 56.80, 141.27°)
OKLaboklab(52.48% -0.1197 0.0833)
OKLCHoklch(52.48% 0.146 145.2)
XYZxyz(8.7091, 15.6984, 5.1553)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F2E #7F2172
analogous
#437F21 #217F2E #217F5D
triadic
#217F2E #2E217F #7F2E21
tetradic
#217F2E #21437F #7F2172 #7F5D21
square
#217F2E #21437F #7F2172 #7F5D21
split-complementary
#217F2E #5D217F #7F2143
monochromatic
#081E0B #144E1C #217F2E #2EB040 #4AD05D

Accessibility & contrast

On white

5.07
#217F2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#217F2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217F2E
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217F2E#FFFFFF#000000##FFFFFF
##217F2E1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817325
Deuteranopia (green-blind)
#766B35
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f2e;
/* rgb */ color: rgb(33, 127, 46);
/* oklch */ color: oklch(52.5% 0.146 145.2);
Tailwind
colors: {
  custom: {
    50: '#6ba56a',
    500: '#217f2e',
    950: '#000000',
  },
}
SCSS
$custom: #217f2e;
$custom-light: #6ba56a;
$custom-dark: #000000;
JSON
{
  "hex": "#217f2e",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 128.298,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52475,
    "c": 0.1458,
    "h": 145.2
  },
  "luminance": 0.15699
}

Semantic roles & 50–950 ramp

primary
#217F2E
secondary
#B24AA3
accent
#46CCE2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #217F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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