#8F218C#8F218C

#8F218C is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.187 H 329.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8F218C
RGBrgb(143, 33, 140)
HSLhsl(302, 63%, 35%)
HSVhsv(302, 77%, 56%)
CMYKcmyk(0%, 76.9%, 2.1%, 43.9%)
CIE-LABlab(35.64, 56.93, -34.46)
CIE-LCHlch(35.64, 66.55, 328.81°)
OKLaboklab(46.99% 0.1603 -0.0953)
OKLCHoklch(46.99% 0.187 329.3)
XYZxyz(16.6050, 8.8221, 25.6341)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F218C #218F24
analogous
#5B218F #8F218C #8F2155
triadic
#8F218C #8C8F21 #218C8F
tetradic
#8F218C #8F5B21 #218F24 #21558F
square
#8F218C #8F5B21 #218F24 #21558F
split-complementary
#8F218C #558F21 #218F5B
monochromatic
#2C0A2B #5D165B #8F218C #C12CBD #D753D4

Accessibility & contrast

On white

7.60
#8F218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8F218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F218C
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F218C#FFFFFF#000000##FFFFFF
##8F218C1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4B8F
Deuteranopia (green-blind)
#425989
Tritanopia (blue-blind)
#943255
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8f218c;
/* rgb */ color: rgb(143, 33, 140);
/* oklch */ color: oklch(47.0% 0.187 329.3);
Tailwind
colors: {
  custom: {
    50: '#b369ae',
    500: '#8f218c',
    950: '#000000',
  },
}
SCSS
$custom: #8f218c;
$custom-light: #b369ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8f218c",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 301.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46987,
    "c": 0.18653,
    "h": 329.3
  },
  "luminance": 0.08821
}

Semantic roles & 50–950 ramp

primary
#8F218C
secondary
#51BB54
accent
#E64742
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F218C

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

Preview Lab → · Contrast checker → · Palette generator →

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