#217F1A#217F1A

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

Color values

HEX#217F1A
RGBrgb(33, 127, 26)
HSLhsl(116, 66%, 30%)
HSVhsv(116, 80%, 50%)
CMYKcmyk(74%, 0%, 79.5%, 50.2%)
CIE-LABlab(46.41, -46.28, 43.77)
CIE-LCHlch(46.41, 63.70, 136.60°)
OKLaboklab(52.29% -0.126 0.0981)
OKLCHoklch(52.29% 0.16 142.1)
XYZxyz(8.4025, 15.5757, 3.5407)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F1A #781A7F
analogous
#537F1A #217F1A #1A7F46
triadic
#217F1A #1A217F #7F1A21
tetradic
#217F1A #1A537F #781A7F #7F461A
square
#217F1A #1A537F #781A7F #7F461A
split-complementary
#217F1A #461A7F #7F1A53
monochromatic
#071905 #144C10 #217F1A #2EB224 #47D73C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217F1A#FFFFFF#000000##FFFFFF
##217F1A1.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)
#827202
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#037B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f1a;
/* rgb */ color: rgb(33, 127, 26);
/* oklch */ color: oklch(52.3% 0.160 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ca55f',
    500: '#217f1a',
    950: '#000000',
  },
}
SCSS
$custom: #217f1a;
$custom-light: #6ca55f;
$custom-dark: #000000;
JSON
{
  "hex": "#217f1a",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 115.842,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.52287,
    "c": 0.15969,
    "h": 142.1
  },
  "luminance": 0.15577
}

Semantic roles & 50–950 ramp

primary
#217F1A
secondary
#AB42B3
accent
#3FE9DD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #217F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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