#217F2F#217F2F

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

Color values

HEX#217F2F
RGBrgb(33, 127, 47)
HSLhsl(129, 59%, 31%)
HSVhsv(129, 74%, 50%)
CMYKcmyk(74%, 0%, 63%, 50.2%)
CIE-LABlab(46.59, -44.18, 35.07)
CIE-LCHlch(46.59, 56.41, 141.56°)
OKLaboklab(52.49% -0.1193 0.0824)
OKLCHoklch(52.49% 0.145 145.4)
XYZxyz(8.7291, 15.7063, 5.2604)
Luminance0.1571 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F2F #7F2171
analogous
#427F21 #217F2F #217F5E
triadic
#217F2F #2F217F #7F2F21
tetradic
#217F2F #21427F #7F2171 #7F5E21
square
#217F2F #21427F #7F2171 #7F5E21
split-complementary
#217F2F #5E217F #7F2142
monochromatic
#081E0B #144E1D #217F2F #2EB041 #4AD05E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217F2F#FFFFFF#000000##FFFFFF
##217F2F1.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)
#817326
Deuteranopia (green-blind)
#766B36
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f2f;
/* rgb */ color: rgb(33, 127, 47);
/* oklch */ color: oklch(52.5% 0.145 145.4);
Tailwind
colors: {
  custom: {
    50: '#6ba56b',
    500: '#217f2f',
    950: '#000000',
  },
}
SCSS
$custom: #217f2f;
$custom-light: #6ba56b;
$custom-dark: #000000;
JSON
{
  "hex": "#217f2f",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 128.936,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52487,
    "c": 0.14497,
    "h": 145.4
  },
  "luminance": 0.15707
}

Semantic roles & 50–950 ramp

primary
#217F2F
secondary
#B24AA2
accent
#46CBE2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #217F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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