#8F21AE#8F21AE

#8F21AE is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.214 H 317.2°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8F21AE
RGBrgb(143, 33, 174)
HSLhsl(287, 68%, 41%)
HSVhsv(287, 81%, 68%)
CMYKcmyk(17.8%, 81%, 0%, 31.8%)
CIE-LABlab(37.81, 62.99, -51.56)
CIE-LCHlch(37.81, 81.41, 320.70°)
OKLaboklab(49.22% 0.1571 -0.1453)
OKLCHoklch(49.22% 0.214 317.2)
XYZxyz(19.5104, 9.9842, 40.9356)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F21AE #40AE21
analogous
#4921AE #8F21AE #AE2186
triadic
#8F21AE #AE8F21 #21AE8F
tetradic
#8F21AE #AE4921 #40AE21 #2186AE
square
#8F21AE #AE4921 #40AE21 #2186AE
split-complementary
#8F21AE #86AE21 #21AE49
monochromatic
#3A0D47 #65177B #8F21AE #B434D8 #C767E2

Accessibility & contrast

On white

7.01
#8F21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8F21AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F21AE
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F21AE#FFFFFF#000000##FFFFFF
##8F21AE1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#245CAB
Tritanopia (blue-blind)
#8D4269
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f21ae;
/* rgb */ color: rgb(143, 33, 174);
/* oklch */ color: oklch(49.2% 0.214 317.2);
Tailwind
colors: {
  custom: {
    50: '#b46bc7',
    500: '#8f21ae',
    950: '#000000',
  },
}
SCSS
$custom: #8f21ae;
$custom-light: #b46bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f21ae",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 286.809,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49221,
    "c": 0.21404,
    "h": 317.2
  },
  "luminance": 0.09983
}

Semantic roles & 50–950 ramp

primary
#8F21AE
secondary
#79C863
accent
#EB3D63
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120813
muted
#817A82

Preview Lab

Preview with #8F21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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