#8F28A1#8F28A1

#8F28A1 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.196 H 321.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#8F28A1
RGBrgb(143, 40, 161)
HSLhsl(291, 60%, 39%)
HSVhsv(291, 75%, 63%)
CMYKcmyk(11.2%, 75.2%, 0%, 36.9%)
CIE-LABlab(37.72, 58.32, -43.93)
CIE-LCHlch(37.72, 73.01, 323.01°)
OKLaboklab(48.88% 0.153 -0.123)
OKLCHoklch(48.88% 0.196 321.2)
XYZxyz(18.5188, 9.9314, 34.6528)
Luminance0.0993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28A1 #3AA128
analogous
#5228A1 #8F28A1 #A12877
triadic
#8F28A1 #A18F28 #28A18F
tetradic
#8F28A1 #A15228 #3AA128 #2877A1
square
#8F28A1 #A15228 #3AA128 #2877A1
split-complementary
#8F28A1 #77A128 #28A152
monochromatic
#38103F #631C70 #8F28A1 #B739CE #C96ADA

Accessibility & contrast

On white

7.03
#8F28A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8F28A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F28A1
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28A1#FFFFFF#000000##FFFFFF
##8F28A11.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#375C9E
Tritanopia (blue-blind)
#904063
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f28a1;
/* rgb */ color: rgb(143, 40, 161);
/* oklch */ color: oklch(48.9% 0.196 321.2);
Tailwind
colors: {
  custom: {
    50: '#b46dbd',
    500: '#8f28a1',
    950: '#000000',
  },
}
SCSS
$custom: #8f28a1;
$custom-light: #b46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28a1",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 291.074,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48878,
    "c": 0.19628,
    "h": 321.2
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#8F28A1
secondary
#72C065
accent
#E3445C
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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