#217F1C#217F1C

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

Color values

HEX#217F1C
RGBrgb(33, 127, 28)
HSLhsl(117, 64%, 30%)
HSVhsv(117, 78%, 50%)
CMYKcmyk(74%, 0%, 78%, 50.2%)
CIE-LABlab(46.43, -46.13, 43.07)
CIE-LCHlch(46.43, 63.11, 136.97°)
OKLaboklab(52.3% -0.1255 0.0969)
OKLCHoklch(52.3% 0.159 142.3)
XYZxyz(8.4257, 15.5850, 3.6625)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F1C #7A1C7F
analogous
#527F1C #217F1C #1C7F49
triadic
#217F1C #1C217F #7F1C21
tetradic
#217F1C #1C527F #7A1C7F #7F491C
square
#217F1C #1C527F #7A1C7F #7F491C
split-complementary
#217F1C #491C7F #7F1C52
monochromatic
#071B06 #144D11 #217F1C #2EB127 #48D540

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217F1C#FFFFFF#000000##FFFFFF
##217F1C1.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)
#827206
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#027B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f1c;
/* rgb */ color: rgb(33, 127, 28);
/* oklch */ color: oklch(52.3% 0.159 142.3);
Tailwind
colors: {
  custom: {
    50: '#6ca560',
    500: '#217f1c',
    950: '#000000',
  },
}
SCSS
$custom: #217f1c;
$custom-light: #6ca560;
$custom-dark: #000000;
JSON
{
  "hex": "#217f1c",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 116.97,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52301,
    "c": 0.15857,
    "h": 142.3
  },
  "luminance": 0.15586
}

Semantic roles & 50–950 ramp

primary
#217F1C
secondary
#AD44B3
accent
#41E7DF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #217F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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