#8F218A#8F218A

#8F218A is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.185 H 330.1°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#8F218A
RGBrgb(143, 33, 138)
HSLhsl(303, 63%, 35%)
HSVhsv(303, 77%, 56%)
CMYKcmyk(0%, 76.9%, 3.5%, 43.9%)
CIE-LABlab(35.53, 56.60, -33.41)
CIE-LCHlch(35.53, 65.73, 329.45°)
OKLaboklab(46.87% 0.1603 -0.0923)
OKLCHoklch(46.87% 0.185 330.1)
XYZxyz(16.4589, 8.7636, 24.8645)
Luminance0.0876 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F218A #218F26
analogous
#5D218F #8F218A #8F2153
triadic
#8F218A #8A8F21 #218A8F
tetradic
#8F218A #8F5D21 #218F26 #21538F
square
#8F218A #8F5D21 #218F26 #21538F
split-complementary
#8F218A #538F21 #218F5D
monochromatic
#2C0A2A #5D165A #8F218A #C12CBA #D753D1

Accessibility & contrast

On white

7.63
#8F218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8F218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F218A
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F218A#FFFFFF#000000##FFFFFF
##8F218A1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114A8D
Deuteranopia (green-blind)
#435987
Tritanopia (blue-blind)
#943054
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8f218a;
/* rgb */ color: rgb(143, 33, 138);
/* oklch */ color: oklch(46.9% 0.185 330.1);
Tailwind
colors: {
  custom: {
    50: '#b369ac',
    500: '#8f218a',
    950: '#000000',
  },
}
SCSS
$custom: #8f218a;
$custom-light: #b369ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8f218a",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 302.727,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46868,
    "c": 0.18499,
    "h": 330.1
  },
  "luminance": 0.08762
}

Semantic roles & 50–950 ramp

primary
#8F218A
secondary
#51BB56
accent
#E64A42
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F218A

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

Preview Lab → · Contrast checker → · Palette generator →

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