#217B18#217B18

#217B18 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.1% C 0.156 H 141.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#217B18
RGBrgb(33, 123, 24)
HSLhsl(115, 67%, 29%)
HSVhsv(115, 80%, 48%)
CMYKcmyk(73.2%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.02, -45.04, 43.11)
CIE-LCHlch(45.02, 62.34, 136.25°)
OKLaboklab(51.13% -0.1227 0.0964)
OKLCHoklch(51.13% 0.156 141.8)
XYZxyz(7.8746, 14.5543, 3.2582)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B18 #72187B
analogous
#537B18 #217B18 #187B41
triadic
#217B18 #18217B #7B1821
tetradic
#217B18 #18537B #72187B #7B4118
square
#217B18 #18537B #72187B #7B4118
split-complementary
#217B18 #41187B #7B1853
monochromatic
#071A05 #13480E #217B18 #2FAE22 #44D836

Accessibility & contrast

On white

5.37
#217B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#217B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217B18
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217B18#FFFFFF#000000##FFFFFF
##217B181.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#077768
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #217b18;
/* rgb */ color: rgb(33, 123, 24);
/* oklch */ color: oklch(51.1% 0.156 141.8);
Tailwind
colors: {
  custom: {
    50: '#6ca25d',
    500: '#217b18',
    950: '#000000',
  },
}
SCSS
$custom: #217b18;
$custom-light: #6ca25d;
$custom-dark: #000000;
JSON
{
  "hex": "#217b18",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 114.545,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51125,
    "c": 0.15608,
    "h": 141.8
  },
  "luminance": 0.14555
}

Semantic roles & 50–950 ramp

primary
#217B18
secondary
#A53FB0
accent
#3EEADB
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #217B18

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

Preview Lab → · Contrast checker → · Palette generator →

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