#8F28AB#8F28AB

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

Color values

HEX#8F28AB
RGBrgb(143, 40, 171)
HSLhsl(287, 62%, 41%)
HSVhsv(287, 77%, 67%)
CMYKcmyk(16.4%, 76.6%, 0%, 32.9%)
CIE-LABlab(38.37, 60.21, -48.88)
CIE-LCHlch(38.37, 77.55, 320.93°)
OKLaboklab(49.55% 0.1519 -0.1375)
OKLCHoklch(49.55% 0.205 317.9)
XYZxyz(19.4361, 10.2984, 39.4842)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28AB #44AB28
analogous
#4E28AB #8F28AB #AB2886
triadic
#8F28AB #AB8F28 #28AB8F
tetradic
#8F28AB #AB4E28 #44AB28 #2886AB
square
#8F28AB #AB4E28 #44AB28 #2886AB
split-complementary
#8F28AB #86AB28 #28AB4E
monochromatic
#3C1148 #661C79 #8F28AB #B23ED2 #C670DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F28AB#FFFFFF#000000##FFFFFF
##8F28AB1.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)
#0054AF
Deuteranopia (green-blind)
#2D5DA8
Tritanopia (blue-blind)
#8E4468
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8f28ab;
/* rgb */ color: rgb(143, 40, 171);
/* oklch */ color: oklch(49.5% 0.205 317.9);
Tailwind
colors: {
  custom: {
    50: '#b46ec5',
    500: '#8f28ab',
    950: '#000000',
  },
}
SCSS
$custom: #8f28ab;
$custom-light: #b46ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28ab",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 287.176,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4955,
    "c": 0.20488,
    "h": 317.9
  },
  "luminance": 0.10297
}

Semantic roles & 50–950 ramp

primary
#8F28AB
secondary
#7EC46A
accent
#E54365
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8F28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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