#217F18#217F18

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

Color values

HEX#217F18
RGBrgb(33, 127, 24)
HSLhsl(115, 68%, 30%)
HSVhsv(115, 81%, 50%)
CMYKcmyk(74%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.40, -46.42, 44.44)
CIE-LCHlch(46.40, 64.27, 136.25°)
OKLaboklab(52.27% -0.1265 0.0992)
OKLCHoklch(52.27% 0.161 141.9)
XYZxyz(8.3810, 15.5671, 3.4270)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F18 #76187F
analogous
#557F18 #217F18 #187F42
triadic
#217F18 #18217F #7F1821
tetradic
#217F18 #18557F #76187F #7F4218
square
#217F18 #18557F #76187F #7F4218
split-complementary
#217F18 #42187F #7F1855
monochromatic
#071A05 #144C0E #217F18 #2EB222 #46D938

Accessibility & contrast

On white

5.11
#217F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#217F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217F18
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217F18#FFFFFF#000000##FFFFFF
##217F181.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786B24
Tritanopia (blue-blind)
#047B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f18;
/* rgb */ color: rgb(33, 127, 24);
/* oklch */ color: oklch(52.3% 0.161 141.9);
Tailwind
colors: {
  custom: {
    50: '#6da55e',
    500: '#217f18',
    950: '#000000',
  },
}
SCSS
$custom: #217f18;
$custom-light: #6da55e;
$custom-dark: #000000;
JSON
{
  "hex": "#217f18",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 114.757,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52274,
    "c": 0.16075,
    "h": 141.9
  },
  "luminance": 0.15568
}

Semantic roles & 50–950 ramp

primary
#217F18
secondary
#A93FB3
accent
#3DEBDC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #217F18

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

Preview Lab → · Contrast checker → · Palette generator →

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