#8F27AB#8F27AB

#8F27AB is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.206 H 317.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8F27AB
RGBrgb(143, 39, 171)
HSLhsl(287, 63%, 41%)
HSVhsv(287, 77%, 67%)
CMYKcmyk(16.4%, 77.2%, 0%, 32.9%)
CIE-LABlab(38.26, 60.55, -49.06)
CIE-LCHlch(38.26, 77.93, 320.98°)
OKLaboklab(49.47% 0.1528 -0.138)
OKLCHoklch(49.47% 0.206 317.9)
XYZxyz(19.4029, 10.2318, 39.4731)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27AB #43AB27
analogous
#4D27AB #8F27AB #AB2785
triadic
#8F27AB #AB8F27 #27AB8F
tetradic
#8F27AB #AB4D27 #43AB27 #2785AB
square
#8F27AB #AB4D27 #43AB27 #2785AB
split-complementary
#8F27AB #85AB27 #27AB4D
monochromatic
#3C1047 #651C79 #8F27AB #B33DD3 #C66EDE

Accessibility & contrast

On white

6.89
#8F27AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8F27AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F27AB
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27AB#FFFFFF#000000##FFFFFF
##8F27AB1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#2C5DA8
Tritanopia (blue-blind)
#8E4468
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8f27ab;
/* rgb */ color: rgb(143, 39, 171);
/* oklch */ color: oklch(49.5% 0.206 317.9);
Tailwind
colors: {
  custom: {
    50: '#b46dc5',
    500: '#8f27ab',
    950: '#000000',
  },
}
SCSS
$custom: #8f27ab;
$custom-light: #b46dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27ab",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 287.273,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49467,
    "c": 0.2059,
    "h": 317.9
  },
  "luminance": 0.10231
}

Semantic roles & 50–950 ramp

primary
#8F27AB
secondary
#7DC569
accent
#E64265
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8F27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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