#8B28A4#8B28A4

#8B28A4 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.197 H 318.5°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#8B28A4
RGBrgb(139, 40, 164)
HSLhsl(288, 61%, 40%)
HSVhsv(288, 76%, 64%)
CMYKcmyk(15.2%, 75.6%, 0%, 35.7%)
CIE-LABlab(37.28, 58.06, -46.48)
CIE-LCHlch(37.28, 74.37, 321.32°)
OKLaboklab(48.5% 0.1478 -0.1306)
OKLCHoklch(48.5% 0.197 318.5)
XYZxyz(18.1062, 9.6877, 36.0310)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28A4 #41A428
analogous
#4D28A4 #8B28A4 #A4287F
triadic
#8B28A4 #A48B28 #28A48B
tetradic
#8B28A4 #A44D28 #41A428 #287FA4
square
#8B28A4 #A44D28 #41A428 #287FA4
split-complementary
#8B28A4 #7FA428 #28A44D
monochromatic
#381042 #611C73 #8B28A4 #B13ACF #C46BDB

Accessibility & contrast

On white

7.15
#8B28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8B28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B28A4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28A4#FFFFFF#000000##FFFFFF
##8B28A41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2F5BA1
Tritanopia (blue-blind)
#8A4264
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b28a4;
/* rgb */ color: rgb(139, 40, 164);
/* oklch */ color: oklch(48.5% 0.197 318.5);
Tailwind
colors: {
  custom: {
    50: '#b16dc0',
    500: '#8b28a4',
    950: '#000000',
  },
}
SCSS
$custom: #8b28a4;
$custom-light: #b16dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28a4",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 287.903,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.48499,
    "c": 0.19725,
    "h": 318.5
  },
  "luminance": 0.09687
}

Semantic roles & 50–950 ramp

primary
#8B28A4
secondary
#79C166
accent
#E44464
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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