#8F28A6#8F28A6

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

Color values

HEX#8F28A6
RGBrgb(143, 40, 166)
HSLhsl(289, 61%, 40%)
HSVhsv(289, 76%, 65%)
CMYKcmyk(13.9%, 75.9%, 0%, 34.9%)
CIE-LABlab(38.04, 59.25, -46.42)
CIE-LCHlch(38.04, 75.27, 321.93°)
OKLaboklab(49.21% 0.1525 -0.1303)
OKLCHoklch(49.21% 0.201 319.5)
XYZxyz(18.9685, 10.1113, 37.0215)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28A6 #3FA628
analogous
#5028A6 #8F28A6 #A6287E
triadic
#8F28A6 #A68F28 #28A68F
tetradic
#8F28A6 #A65028 #3FA628 #287EA6
square
#8F28A6 #A65028 #3FA628 #287EA6
split-complementary
#8F28A6 #7EA628 #28A650
monochromatic
#3A1043 #651C75 #8F28A6 #B53BD0 #C76DDC

Accessibility & contrast

On white

6.95
#8F28A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8F28A6
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28A6#FFFFFF#000000##FFFFFF
##8F28A61.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#325DA3
Tritanopia (blue-blind)
#8F4266
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8f28a6;
/* rgb */ color: rgb(143, 40, 166);
/* oklch */ color: oklch(49.2% 0.201 319.5);
Tailwind
colors: {
  custom: {
    50: '#b46dc1',
    500: '#8f28a6',
    950: '#000000',
  },
}
SCSS
$custom: #8f28a6;
$custom-light: #b46dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28a6",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 289.048,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4921,
    "c": 0.20057,
    "h": 319.5
  },
  "luminance": 0.1011
}

Semantic roles & 50–950 ramp

primary
#8F28A6
secondary
#78C267
accent
#E44461
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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