#217F1D#217F1D

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

Color values

HEX#217F1D
RGBrgb(33, 127, 29)
HSLhsl(118, 63%, 31%)
HSVhsv(118, 77%, 50%)
CMYKcmyk(74%, 0%, 77.2%, 50.2%)
CIE-LABlab(46.43, -46.05, 42.71)
CIE-LCHlch(46.43, 62.81, 137.16°)
OKLaboklab(52.31% -0.1252 0.0963)
OKLCHoklch(52.31% 0.158 142.4)
XYZxyz(8.4378, 15.5899, 3.7266)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F1D #7B1D7F
analogous
#527F1D #217F1D #1D7F4A
triadic
#217F1D #1D217F #7F1D21
tetradic
#217F1D #1D527F #7B1D7F #7F4A1D
square
#217F1D #1D527F #7B1D7F #7F4A1D
split-complementary
#217F1D #4A1D7F #7F1D52
monochromatic
#071B06 #144D12 #217F1D #2EB128 #48D442

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217F1D#FFFFFF#000000##FFFFFF
##217F1D1.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)
#827209
Deuteranopia (green-blind)
#776B28
Tritanopia (blue-blind)
#027B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f1d;
/* rgb */ color: rgb(33, 127, 29);
/* oklch */ color: oklch(52.3% 0.158 142.4);
Tailwind
colors: {
  custom: {
    50: '#6ca560',
    500: '#217f1d',
    950: '#000000',
  },
}
SCSS
$custom: #217f1d;
$custom-light: #6ca560;
$custom-dark: #000000;
JSON
{
  "hex": "#217f1d",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 117.551,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52309,
    "c": 0.15798,
    "h": 142.4
  },
  "luminance": 0.15591
}

Semantic roles & 50–950 ramp

primary
#217F1D
secondary
#AE45B2
accent
#42E6DF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #217F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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