#8F28A7#8F28A7

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

Color values

HEX#8F28A7
RGBrgb(143, 40, 167)
HSLhsl(289, 61%, 41%)
HSVhsv(289, 76%, 65%)
CMYKcmyk(14.4%, 76%, 0%, 34.5%)
CIE-LABlab(38.11, 59.44, -46.91)
CIE-LCHlch(38.11, 75.72, 321.72°)
OKLaboklab(49.28% 0.1524 -0.1317)
OKLCHoklch(49.28% 0.201 319.2)
XYZxyz(19.0606, 10.1482, 37.5065)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28A7 #40A728
analogous
#4F28A7 #8F28A7 #A72880
triadic
#8F28A7 #A78F28 #28A78F
tetradic
#8F28A7 #A74F28 #40A728 #2880A7
square
#8F28A7 #A74F28 #40A728 #2880A7
split-complementary
#8F28A7 #80A728 #28A74F
monochromatic
#3A1044 #651C76 #8F28A7 #B43CD0 #C76DDC

Accessibility & contrast

On white

6.93
#8F28A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8F28A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F28A7
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28A7#FFFFFF#000000##FFFFFF
##8F28A71.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f28a7;
/* rgb */ color: rgb(143, 40, 167);
/* oklch */ color: oklch(49.3% 0.201 319.2);
Tailwind
colors: {
  custom: {
    50: '#b46dc2',
    500: '#8f28a7',
    950: '#000000',
  },
}
SCSS
$custom: #8f28a7;
$custom-light: #b46dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28a7",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 288.661,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49277,
    "c": 0.20143,
    "h": 319.2
  },
  "luminance": 0.10147
}

Semantic roles & 50–950 ramp

primary
#8F28A7
secondary
#79C368
accent
#E44362
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #8F28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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