#217F31#217F31

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

Color values

HEX#217F31
RGBrgb(33, 127, 49)
HSLhsl(130, 59%, 31%)
HSVhsv(130, 74%, 50%)
CMYKcmyk(74%, 0%, 61.4%, 50.2%)
CIE-LABlab(46.61, -43.92, 34.11)
CIE-LCHlch(46.61, 55.62, 142.16°)
OKLaboklab(52.51% -0.1185 0.0805)
OKLCHoklch(52.51% 0.143 145.8)
XYZxyz(8.7703, 15.7228, 5.4777)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F31 #7F216F
analogous
#407F21 #217F31 #217F60
triadic
#217F31 #31217F #7F3121
tetradic
#217F31 #21407F #7F216F #7F6021
square
#217F31 #21407F #7F216F #7F6021
split-complementary
#217F31 #60217F #7F2140
monochromatic
#081E0C #144E1E #217F31 #2EB044 #4AD061

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217F31#FFFFFF#000000##FFFFFF
##217F311.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)
#817329
Deuteranopia (green-blind)
#766B37
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f31;
/* rgb */ color: rgb(33, 127, 49);
/* oklch */ color: oklch(52.5% 0.143 145.8);
Tailwind
colors: {
  custom: {
    50: '#6ba56c',
    500: '#217f31',
    950: '#000000',
  },
}
SCSS
$custom: #217f31;
$custom-light: #6ba56c;
$custom-dark: #000000;
JSON
{
  "hex": "#217f31",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 49
  },
  "hsl": {
    "h": 130.213,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52512,
    "c": 0.14327,
    "h": 145.8
  },
  "luminance": 0.15724
}

Semantic roles & 50–950 ramp

primary
#217F31
secondary
#B24AA0
accent
#46C7E2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #217F31

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

Preview Lab → · Contrast checker → · Palette generator →

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