#8F27BB#8F27BB

#8F27BB is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.6% C 0.220 H 313.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8F27BB
RGBrgb(143, 39, 187)
HSLhsl(282, 65%, 44%)
HSVhsv(282, 79%, 73%)
CMYKcmyk(23.5%, 79.1%, 0%, 26.7%)
CIE-LABlab(39.38, 63.68, -56.73)
CIE-LCHlch(39.38, 85.29, 318.30°)
OKLaboklab(50.61% 0.1501 -0.1605)
OKLCHoklch(50.61% 0.22 313.1)
XYZxyz(21.0212, 10.8792, 47.9966)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27BB #53BB27
analogous
#4527BB #8F27BB #BB279D
triadic
#8F27BB #BB8F27 #27BB8F
tetradic
#8F27BB #BB4527 #53BB27 #279DBB
square
#8F27BB #BB4527 #53BB27 #279DBB
split-complementary
#8F27BB #9DBB27 #27BB45
monochromatic
#421256 #681C88 #8F27BB #AD47D9 #C479E3

Accessibility & contrast

On white

6.61
#8F27BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8F27BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F27BB
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27BB#FFFFFF#000000##FFFFFF
##8F27BB1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#105FB8
Tritanopia (blue-blind)
#8A4B71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8f27bb;
/* rgb */ color: rgb(143, 39, 187);
/* oklch */ color: oklch(50.6% 0.220 313.1);
Tailwind
colors: {
  custom: {
    50: '#b56ed0',
    500: '#8f27bb',
    950: '#000000',
  },
}
SCSS
$custom: #8f27bb;
$custom-light: #b56ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27bb",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 282.162,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5061,
    "c": 0.21978,
    "h": 313.1
  },
  "luminance": 0.10879
}

Semantic roles & 50–950 ramp

primary
#8F27BB
secondary
#8DCB73
accent
#E83F72
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8F27BB

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

Preview Lab → · Contrast checker → · Palette generator →

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