#8F28B5#8F28B5

#8F28B5 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.214 H 314.8°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8F28B5
RGBrgb(143, 40, 181)
HSLhsl(284, 64%, 43%)
HSVhsv(284, 78%, 71%)
CMYKcmyk(21%, 77.9%, 0%, 29%)
CIE-LABlab(39.06, 62.16, -53.71)
CIE-LCHlch(39.06, 82.15, 319.17°)
OKLaboklab(50.25% 0.1504 -0.1517)
OKLCHoklch(50.25% 0.214 314.8)
XYZxyz(20.4256, 10.6942, 44.6953)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28B5 #4EB528
analogous
#4828B5 #8F28B5 #B52894
triadic
#8F28B5 #B58F28 #28B58F
tetradic
#8F28B5 #B54828 #4EB528 #2894B5
square
#8F28B5 #B54828 #4EB528 #2894B5
split-complementary
#8F28B5 #94B528 #28B548
monochromatic
#401251 #671D83 #8F28B5 #AF44D6 #C477E1

Accessibility & contrast

On white

6.69
#8F28B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8F28B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F28B5
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28B5#FFFFFF#000000##FFFFFF
##8F28B51.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#1F5EB2
Tritanopia (blue-blind)
#8C496E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f28b5;
/* rgb */ color: rgb(143, 40, 181);
/* oklch */ color: oklch(50.3% 0.214 314.8);
Tailwind
colors: {
  custom: {
    50: '#b46ecc',
    500: '#8f28b5',
    950: '#000000',
  },
}
SCSS
$custom: #8f28b5;
$custom-light: #b46ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28b5",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 283.83,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50253,
    "c": 0.21358,
    "h": 314.8
  },
  "luminance": 0.10693
}

Semantic roles & 50–950 ramp

primary
#8F28B5
secondary
#88C870
accent
#E7416E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #8F28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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