#8F27A6#8F27A6

#8F27A6 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.202 H 319.5°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8F27A6
RGBrgb(143, 39, 166)
HSLhsl(289, 62%, 40%)
HSVhsv(289, 77%, 65%)
CMYKcmyk(13.9%, 76.5%, 0%, 34.9%)
CIE-LABlab(37.92, 59.60, -46.61)
CIE-LCHlch(37.92, 75.66, 321.97°)
OKLaboklab(49.13% 0.1534 -0.1308)
OKLCHoklch(49.13% 0.202 319.5)
XYZxyz(18.9353, 10.0448, 37.0104)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27A6 #3EA627
analogous
#5027A6 #8F27A6 #A6277D
triadic
#8F27A6 #A68F27 #27A68F
tetradic
#8F27A6 #A65027 #3EA627 #277DA6
square
#8F27A6 #A65027 #3EA627 #277DA6
split-complementary
#8F27A6 #7DA627 #27A650
monochromatic
#3A1043 #641B74 #8F27A6 #B53AD1 #C86BDC

Accessibility & contrast

On white

6.98
#8F27A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8F27A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F27A6
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27A6#FFFFFF#000000##FFFFFF
##8F27A61.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#325DA3
Tritanopia (blue-blind)
#8F4165
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f27a6;
/* rgb */ color: rgb(143, 39, 166);
/* oklch */ color: oklch(49.1% 0.202 319.5);
Tailwind
colors: {
  custom: {
    50: '#b46dc1',
    500: '#8f27a6',
    950: '#000000',
  },
}
SCSS
$custom: #8f27a6;
$custom-light: #b46dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27a6",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 289.134,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49125,
    "c": 0.20161,
    "h": 319.5
  },
  "luminance": 0.10044
}

Semantic roles & 50–950 ramp

primary
#8F27A6
secondary
#77C366
accent
#E54360
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #8F27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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