#8F28AC#8F28AC

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

Color values

HEX#8F28AC
RGBrgb(143, 40, 172)
HSLhsl(287, 62%, 42%)
HSVhsv(287, 77%, 67%)
CMYKcmyk(16.9%, 76.7%, 0%, 32.5%)
CIE-LABlab(38.44, 60.40, -49.36)
CIE-LCHlch(38.44, 78.01, 320.74°)
OKLaboklab(49.62% 0.1518 -0.1389)
OKLCHoklch(49.62% 0.206 317.5)
XYZxyz(19.5318, 10.3367, 39.9881)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28AC #45AC28
analogous
#4D28AC #8F28AC #AC2887
triadic
#8F28AC #AC8F28 #28AC8F
tetradic
#8F28AC #AC4D28 #45AC28 #2887AC
square
#8F28AC #AC4D28 #45AC28 #2887AC
split-complementary
#8F28AC #87AC28 #28AC4D
monochromatic
#3C1149 #661C7A #8F28AC #B23FD2 #C671DE

Accessibility & contrast

On white

6.85
#8F28AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8F28AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F28AC
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28AC#FFFFFF#000000##FFFFFF
##8F28AC1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f28ac;
/* rgb */ color: rgb(143, 40, 172);
/* oklch */ color: oklch(49.6% 0.206 317.5);
Tailwind
colors: {
  custom: {
    50: '#b46ec5',
    500: '#8f28ac',
    950: '#000000',
  },
}
SCSS
$custom: #8f28ac;
$custom-light: #b46ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28ac",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 286.818,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49619,
    "c": 0.20574,
    "h": 317.5
  },
  "luminance": 0.10336
}

Semantic roles & 50–950 ramp

primary
#8F28AC
secondary
#7FC56B
accent
#E54266
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8F28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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