#217818#217818

#217818 is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.153 H 141.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#217818
RGBrgb(33, 120, 24)
HSLhsl(114, 67%, 28%)
HSVhsv(114, 80%, 47%)
CMYKcmyk(72.5%, 0%, 80%, 52.9%)
CIE-LABlab(43.98, -43.98, 42.10)
CIE-LCHlch(43.98, 60.88, 136.25°)
OKLaboklab(50.26% -0.1199 0.0943)
OKLCHoklch(50.26% 0.153 141.8)
XYZxyz(7.5081, 13.8214, 3.1361)
Luminance0.1382 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217818 #6F1878
analogous
#517818 #217818 #18783F
triadic
#217818 #182178 #781821
tetradic
#217818 #185178 #6F1878 #783F18
square
#217818 #185178 #6F1878 #783F18
split-complementary
#217818 #3F1878 #781851
monochromatic
#071A05 #13450E #217818 #2FAB22 #43D634

Accessibility & contrast

On white

5.58
#217818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#217818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217818
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217818#FFFFFF#000000##FFFFFF
##2178181.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#716523
Tritanopia (blue-blind)
#0A7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #217818;
/* rgb */ color: rgb(33, 120, 24);
/* oklch */ color: oklch(50.3% 0.153 141.8);
Tailwind
colors: {
  custom: {
    50: '#6ba05d',
    500: '#217818',
    950: '#000000',
  },
}
SCSS
$custom: #217818;
$custom-light: #6ba05d;
$custom-dark: #000000;
JSON
{
  "hex": "#217818",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 114.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5026,
    "c": 0.15254,
    "h": 141.8
  },
  "luminance": 0.13822
}

Semantic roles & 50–950 ramp

primary
#217818
secondary
#A33FAD
accent
#3EEADA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080F04
muted
#7A7E79

Preview Lab

Preview with #217818

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

Preview Lab → · Contrast checker → · Palette generator →

#217818 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva