#8F28B7#8F28B7

#8F28B7 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.4% C 0.215 H 314.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8F28B7
RGBrgb(143, 40, 183)
HSLhsl(283, 64%, 44%)
HSVhsv(283, 78%, 72%)
CMYKcmyk(21.9%, 78.1%, 0%, 28.2%)
CIE-LABlab(39.20, 62.56, -54.66)
CIE-LCHlch(39.20, 83.07, 318.85°)
OKLaboklab(50.4% 0.15 -0.1545)
OKLCHoklch(50.4% 0.215 314.2)
XYZxyz(20.6323, 10.7768, 45.7839)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28B7 #50B728
analogous
#4728B7 #8F28B7 #B72897
triadic
#8F28B7 #B78F28 #28B78F
tetradic
#8F28B7 #B74728 #50B728 #2897B7
square
#8F28B7 #B74728 #50B728 #2897B7
split-complementary
#8F28B7 #97B728 #28B747
monochromatic
#411253 #681D85 #8F28B7 #AE46D6 #C478E1

Accessibility & contrast

On white

6.66
#8F28B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8F28B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F28B7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28B7#FFFFFF#000000##FFFFFF
##8F28B71.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#1B5FB4
Tritanopia (blue-blind)
#8B4A6F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f28b7;
/* rgb */ color: rgb(143, 40, 183);
/* oklch */ color: oklch(50.4% 0.215 314.2);
Tailwind
colors: {
  custom: {
    50: '#b46ecd',
    500: '#8f28b7',
    950: '#000000',
  },
}
SCSS
$custom: #8f28b7;
$custom-light: #b46ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28b7",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 283.217,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50397,
    "c": 0.21534,
    "h": 314.2
  },
  "luminance": 0.10776
}

Semantic roles & 50–950 ramp

primary
#8F28B7
secondary
#8AC972
accent
#E7416F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8F28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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