#8F27AD#8F27AD

#8F27AD is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.6% C 0.208 H 317.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8F27AD
RGBrgb(143, 39, 173)
HSLhsl(287, 63%, 42%)
HSVhsv(287, 77%, 68%)
CMYKcmyk(17.3%, 77.5%, 0%, 32.2%)
CIE-LABlab(38.39, 60.93, -50.04)
CIE-LCHlch(38.39, 78.84, 320.61°)
OKLaboklab(49.61% 0.1525 -0.1409)
OKLCHoklch(49.61% 0.208 317.3)
XYZxyz(19.5949, 10.3087, 40.4847)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27AD #45AD27
analogous
#4C27AD #8F27AD #AD2788
triadic
#8F27AD #AD8F27 #27AD8F
tetradic
#8F27AD #AD4C27 #45AD27 #2788AD
square
#8F27AD #AD4C27 #45AD27 #2788AD
split-complementary
#8F27AD #88AD27 #27AD4C
monochromatic
#3C1049 #661C7B #8F27AD #B23ED3 #C670DF

Accessibility & contrast

On white

6.86
#8F27AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8F27AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F27AD
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27AD#FFFFFF#000000##FFFFFF
##8F27AD1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#2A5DAA
Tritanopia (blue-blind)
#8E4569
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8f27ad;
/* rgb */ color: rgb(143, 39, 173);
/* oklch */ color: oklch(49.6% 0.208 317.3);
Tailwind
colors: {
  custom: {
    50: '#b46dc6',
    500: '#8f27ad',
    950: '#000000',
  },
}
SCSS
$custom: #8f27ad;
$custom-light: #b46dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27ad",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 286.567,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49605,
    "c": 0.20762,
    "h": 317.3
  },
  "luminance": 0.10308
}

Semantic roles & 50–950 ramp

primary
#8F27AD
secondary
#7FC66A
accent
#E64266
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8F27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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