#217F1F#217F1F

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

Color values

HEX#217F1F
RGBrgb(33, 127, 31)
HSLhsl(119, 61%, 31%)
HSVhsv(119, 76%, 50%)
CMYKcmyk(74%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.45, -45.89, 41.96)
CIE-LCHlch(46.45, 62.18, 137.56°)
OKLaboklab(52.32% -0.1247 0.095)
OKLCHoklch(52.32% 0.157 142.7)
XYZxyz(8.4634, 15.6001, 3.8611)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F1F #7D1F7F
analogous
#517F1F #217F1F #1F7F4D
triadic
#217F1F #1F217F #7F1F21
tetradic
#217F1F #1F517F #7D1F7F #7F4D1F
square
#217F1F #1F517F #7D1F7F #7F4D1F
split-complementary
#217F1F #4D1F7F #7F1F51
monochromatic
#071D07 #144E13 #217F1F #2EB02B #49D246

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217F1F#FFFFFF#000000##FFFFFF
##217F1F1.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)
#82730D
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#017B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f1f;
/* rgb */ color: rgb(33, 127, 31);
/* oklch */ color: oklch(52.3% 0.157 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ca561',
    500: '#217f1f',
    950: '#000000',
  },
}
SCSS
$custom: #217f1f;
$custom-light: #6ca561;
$custom-dark: #000000;
JSON
{
  "hex": "#217f1f",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 118.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52324,
    "c": 0.15677,
    "h": 142.7
  },
  "luminance": 0.15601
}

Semantic roles & 50–950 ramp

primary
#217F1F
secondary
#B048B2
accent
#44E4E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #217F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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