#8F27A7#8F27A7

#8F27A7 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.202 H 319.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8F27A7
RGBrgb(143, 39, 167)
HSLhsl(289, 62%, 40%)
HSVhsv(289, 77%, 65%)
CMYKcmyk(14.4%, 76.6%, 0%, 34.5%)
CIE-LABlab(37.99, 59.78, -47.10)
CIE-LCHlch(37.99, 76.11, 321.77°)
OKLaboklab(49.19% 0.1533 -0.1323)
OKLCHoklch(49.19% 0.202 319.2)
XYZxyz(19.0273, 10.0816, 37.4954)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27A7 #3FA727
analogous
#4F27A7 #8F27A7 #A7277F
triadic
#8F27A7 #A78F27 #27A78F
tetradic
#8F27A7 #A74F27 #3FA727 #277FA7
square
#8F27A7 #A74F27 #3FA727 #277FA7
split-complementary
#8F27A7 #7FA727 #27A74F
monochromatic
#3A1044 #651B75 #8F27A7 #B53AD1 #C76CDD

Accessibility & contrast

On white

6.96
#8F27A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8F27A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F27A7
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27A7#FFFFFF#000000##FFFFFF
##8F27A71.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#315DA4
Tritanopia (blue-blind)
#8F4266
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f27a7;
/* rgb */ color: rgb(143, 39, 167);
/* oklch */ color: oklch(49.2% 0.202 319.2);
Tailwind
colors: {
  custom: {
    50: '#b46dc2',
    500: '#8f27a7',
    950: '#000000',
  },
}
SCSS
$custom: #8f27a7;
$custom-light: #b46dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27a7",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 288.75,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49193,
    "c": 0.20246,
    "h": 319.2
  },
  "luminance": 0.10081
}

Semantic roles & 50–950 ramp

primary
#8F27A7
secondary
#78C367
accent
#E54361
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120812
muted
#817A81

Preview Lab

Preview with #8F27A7

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

Preview Lab → · Contrast checker → · Palette generator →

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