#8F27A1#8F27A1

#8F27A1 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.197 H 321.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8F27A1
RGBrgb(143, 39, 161)
HSLhsl(291, 61%, 39%)
HSVhsv(291, 76%, 63%)
CMYKcmyk(11.2%, 75.8%, 0%, 36.9%)
CIE-LABlab(37.60, 58.66, -44.12)
CIE-LCHlch(37.60, 73.40, 323.05°)
OKLaboklab(48.79% 0.1539 -0.1235)
OKLCHoklch(48.79% 0.197 321.2)
XYZxyz(18.4855, 9.8649, 34.6417)
Luminance0.0986 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27A1 #39A127
analogous
#5227A1 #8F27A1 #A12776
triadic
#8F27A1 #A18F27 #27A18F
tetradic
#8F27A1 #A15227 #39A127 #2776A1
square
#8F27A1 #A15227 #39A127 #2776A1
split-complementary
#8F27A1 #76A127 #27A152
monochromatic
#370F3E #631B70 #8F27A1 #B837CE #CA68DA

Accessibility & contrast

On white

7.06
#8F27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8F27A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F27A1
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27A1#FFFFFF#000000##FFFFFF
##8F27A11.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#365C9E
Tritanopia (blue-blind)
#903F63
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8f27a1;
/* rgb */ color: rgb(143, 39, 161);
/* oklch */ color: oklch(48.8% 0.197 321.2);
Tailwind
colors: {
  custom: {
    50: '#b46dbd',
    500: '#8f27a1',
    950: '#000000',
  },
}
SCSS
$custom: #8f27a1;
$custom-light: #b46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27a1",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 291.148,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.19736,
    "h": 321.2
  },
  "luminance": 0.09864
}

Semantic roles & 50–950 ramp

primary
#8F27A1
secondary
#71C063
accent
#E4445B
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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