#8F21C2#8F21C2

#8F21C2 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.7% C 0.231 H 311.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8F21C2
RGBrgb(143, 33, 194)
HSLhsl(281, 71%, 45%)
HSVhsv(281, 83%, 76%)
CMYKcmyk(26.3%, 83%, 0%, 23.9%)
CIE-LABlab(39.28, 66.88, -61.00)
CIE-LCHlch(39.28, 90.52, 317.63°)
OKLaboklab(50.71% 0.1529 -0.173)
OKLCHoklch(50.71% 0.231 311.5)
XYZxyz(21.6073, 10.8230, 51.9793)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F21C2 #54C221
analogous
#3F21C2 #8F21C2 #C221A5
triadic
#8F21C2 #C28F21 #21C28F
tetradic
#8F21C2 #C23F21 #54C221 #21A5C2
square
#8F21C2 #C23F21 #54C221 #21A5C2
split-complementary
#8F21C2 #A5C221 #21C23F
monochromatic
#420F59 #68188E #8F21C2 #AD41DF #C476E8

Accessibility & contrast

On white

6.64
#8F21C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8F21C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F21C2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F21C2#FFFFFF#000000##FFFFFF
##8F21C21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#884C74
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f21c2;
/* rgb */ color: rgb(143, 33, 194);
/* oklch */ color: oklch(50.7% 0.231 311.5);
Tailwind
colors: {
  custom: {
    50: '#b56cd5',
    500: '#8f21c2',
    950: '#000000',
  },
}
SCSS
$custom: #8f21c2;
$custom-light: #b56cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f21c2",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 280.994,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50707,
    "c": 0.23088,
    "h": 311.5
  },
  "luminance": 0.10822
}

Semantic roles & 50–950 ramp

primary
#8F21C2
secondary
#8ECF70
accent
#EE3A73
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8F21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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