#217F1E#217F1E

#217F1E is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.157 H 142.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#217F1E
RGBrgb(33, 127, 30)
HSLhsl(118, 62%, 31%)
HSVhsv(118, 76%, 50%)
CMYKcmyk(74%, 0%, 76.4%, 50.2%)
CIE-LABlab(46.44, -45.97, 42.34)
CIE-LCHlch(46.44, 62.49, 137.36°)
OKLaboklab(52.32% -0.125 0.0957)
OKLCHoklch(52.32% 0.157 142.6)
XYZxyz(8.4504, 15.5949, 3.7928)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F1E #7C1E7F
analogous
#517F1E #217F1E #1E7F4B
triadic
#217F1E #1E217F #7F1E21
tetradic
#217F1E #1E517F #7C1E7F #7F4B1E
square
#217F1E #1E517F #7C1E7F #7F4B1E
split-complementary
#217F1E #4B1E7F #7F1E51
monochromatic
#071C07 #144D12 #217F1E #2EB12A #49D344

Accessibility & contrast

On white

5.10
#217F1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#217F1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217F1E
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217F1E#FFFFFF#000000##FFFFFF
##217F1E1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730B
Deuteranopia (green-blind)
#776B28
Tritanopia (blue-blind)
#027B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f1e;
/* rgb */ color: rgb(33, 127, 30);
/* oklch */ color: oklch(52.3% 0.157 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ca561',
    500: '#217f1e',
    950: '#000000',
  },
}
SCSS
$custom: #217f1e;
$custom-light: #6ca561;
$custom-dark: #000000;
JSON
{
  "hex": "#217f1e",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 118.144,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52316,
    "c": 0.15738,
    "h": 142.6
  },
  "luminance": 0.15596
}

Semantic roles & 50–950 ramp

primary
#217F1E
secondary
#AF47B2
accent
#43E5E0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #217F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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