#8C218E#8C218E

#8C218E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.187 H 327.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#8C218E
RGBrgb(140, 33, 142)
HSLhsl(299, 62%, 34%)
HSVhsv(299, 77%, 56%)
CMYKcmyk(1.4%, 76.8%, 0%, 44.3%)
CIE-LABlab(35.24, 56.61, -36.36)
CIE-LCHlch(35.24, 67.28, 327.29°)
OKLaboklab(46.64% 0.157 -0.1009)
OKLCHoklch(46.64% 0.187 327.3)
XYZxyz(16.2413, 8.6173, 26.3938)
Luminance0.0862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C218E #238E21
analogous
#56218E #8C218E #8E215A
triadic
#8C218E #8E8C21 #218E8C
tetradic
#8C218E #8E5621 #238E21 #215A8E
square
#8C218E #8E5621 #238E21 #215A8E
split-complementary
#8C218E #5A8E21 #218E56
monochromatic
#2A0A2B #5B155C #8C218E #BD2DC0 #D452D7

Accessibility & contrast

On white

7.71
#8C218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8C218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C218E
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C218E#FFFFFF#000000##FFFFFF
##8C218E1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A91
Deuteranopia (green-blind)
#3E588B
Tritanopia (blue-blind)
#903356
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8c218e;
/* rgb */ color: rgb(140, 33, 142);
/* oklch */ color: oklch(46.6% 0.187 327.3);
Tailwind
colors: {
  custom: {
    50: '#b169af',
    500: '#8c218e',
    950: '#000000',
  },
}
SCSS
$custom: #8c218e;
$custom-light: #b169af;
$custom-dark: #000000;
JSON
{
  "hex": "#8c218e",
  "rgb": {
    "r": 140,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 298.899,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46638,
    "c": 0.18665,
    "h": 327.3
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#8C218E
secondary
#52BA50
accent
#E54245
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C218E

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

Preview Lab → · Contrast checker → · Palette generator →

#8C218E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva