#8B28AA#8B28AA

#8B28AA is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 48.9% C 0.203 H 316.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8B28AA
RGBrgb(139, 40, 170)
HSLhsl(286, 62%, 41%)
HSVhsv(286, 76%, 67%)
CMYKcmyk(18.2%, 76.5%, 0%, 33.3%)
CIE-LABlab(37.68, 59.23, -49.43)
CIE-LCHlch(37.68, 77.14, 320.15°)
OKLaboklab(48.91% 0.1471 -0.1392)
OKLCHoklch(48.91% 0.203 316.6)
XYZxyz(18.6608, 9.9096, 38.9522)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28AA #47AA28
analogous
#4A28AA #8B28AA #AA2888
triadic
#8B28AA #AA8B28 #28AA8B
tetradic
#8B28AA #AA4A28 #47AA28 #2888AA
square
#8B28AA #AA4A28 #47AA28 #2888AA
split-complementary
#8B28AA #88AA28 #28AA4A
monochromatic
#3A1147 #621C78 #8B28AA #AE3ED2 #C36FDD

Accessibility & contrast

On white

7.04
#8B28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8B28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B28AA
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28AA#FFFFFF#000000##FFFFFF
##8B28AA1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#285BA7
Tritanopia (blue-blind)
#894568
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b28aa;
/* rgb */ color: rgb(139, 40, 170);
/* oklch */ color: oklch(48.9% 0.203 316.6);
Tailwind
colors: {
  custom: {
    50: '#b16dc4',
    500: '#8b28aa',
    950: '#000000',
  },
}
SCSS
$custom: #8b28aa;
$custom-light: #b16dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28aa",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 285.692,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48913,
    "c": 0.20252,
    "h": 316.6
  },
  "luminance": 0.09909
}

Semantic roles & 50–950 ramp

primary
#8B28AA
secondary
#7FC46A
accent
#E54369
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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