#8B28BB#8B28BB

#8B28BB is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.218 H 311.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8B28BB
RGBrgb(139, 40, 187)
HSLhsl(280, 65%, 45%)
HSVhsv(280, 79%, 73%)
CMYKcmyk(25.7%, 78.6%, 0%, 26.7%)
CIE-LABlab(38.89, 62.65, -57.55)
CIE-LCHlch(38.89, 85.07, 317.43°)
OKLaboklab(50.15% 0.1441 -0.1631)
OKLCHoklch(50.15% 0.218 311.5)
XYZxyz(20.3742, 10.5949, 47.9758)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28BB #58BB28
analogous
#4128BB #8B28BB #BB28A2
triadic
#8B28BB #BB8B28 #28BB8B
tetradic
#8B28BB #BB4128 #58BB28 #28A2BB
square
#8B28BB #BB4128 #58BB28 #28A2BB
split-complementary
#8B28BB #A2BB28 #28BB41
monochromatic
#401256 #661D89 #8B28BB #A948D8 #C17BE3

Accessibility & contrast

On white

6.73
#8B28BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8B28BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B28BB
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28BB#FFFFFF#000000##FFFFFF
##8B28BB1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#854C72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b28bb;
/* rgb */ color: rgb(139, 40, 187);
/* oklch */ color: oklch(50.1% 0.218 311.5);
Tailwind
colors: {
  custom: {
    50: '#b26ed0',
    500: '#8b28bb',
    950: '#000000',
  },
}
SCSS
$custom: #8b28bb;
$custom-light: #b26ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28bb",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 280.408,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50147,
    "c": 0.21763,
    "h": 311.5
  },
  "luminance": 0.10594
}

Semantic roles & 50–950 ramp

primary
#8B28BB
secondary
#90CB74
accent
#E84077
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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