#8B28B9#8B28B9

#8B28B9 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.216 H 312.0°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#8B28B9
RGBrgb(139, 40, 185)
HSLhsl(281, 64%, 44%)
HSVhsv(281, 78%, 73%)
CMYKcmyk(24.9%, 78.4%, 0%, 27.5%)
CIE-LABlab(38.74, 62.24, -56.61)
CIE-LCHlch(38.74, 84.13, 317.71°)
OKLaboklab(50% 0.1445 -0.1603)
OKLCHoklch(50% 0.216 312)
XYZxyz(20.1616, 10.5099, 46.8561)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28B9 #56B928
analogous
#4328B9 #8B28B9 #B9289E
triadic
#8B28B9 #B98B28 #28B98B
tetradic
#8B28B9 #B94328 #56B928 #289EB9
square
#8B28B9 #B94328 #56B928 #289EB9
split-complementary
#8B28B9 #9EB928 #28B943
monochromatic
#3F1254 #651D87 #8B28B9 #A947D7 #C179E2

Accessibility & contrast

On white

6.77
#8B28B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8B28B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B28B9
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28B9#FFFFFF#000000##FFFFFF
##8B28B91.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#085DB6
Tritanopia (blue-blind)
#854B70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b28b9;
/* rgb */ color: rgb(139, 40, 185);
/* oklch */ color: oklch(50.0% 0.216 312.0);
Tailwind
colors: {
  custom: {
    50: '#b26ecf',
    500: '#8b28b9',
    950: '#000000',
  },
}
SCSS
$custom: #8b28b9;
$custom-light: #b26ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28b9",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 280.966,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49998,
    "c": 0.21584,
    "h": 312
  },
  "luminance": 0.10509
}

Semantic roles & 50–950 ramp

primary
#8B28B9
secondary
#8ECA73
accent
#E74075
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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