#8B28AC#8B28AC

#8B28AC is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.204 H 315.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8B28AC
RGBrgb(139, 40, 172)
HSLhsl(285, 62%, 42%)
HSVhsv(285, 77%, 67%)
CMYKcmyk(19.2%, 76.7%, 0%, 32.5%)
CIE-LABlab(37.82, 59.62, -50.40)
CIE-LCHlch(37.82, 78.07, 319.79°)
OKLaboklab(49.05% 0.1468 -0.1421)
OKLCHoklch(49.05% 0.204 315.9)
XYZxyz(18.8515, 9.9859, 39.9562)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28AC #49AC28
analogous
#4928AC #8B28AC #AC288B
triadic
#8B28AC #AC8B28 #28AC8B
tetradic
#8B28AC #AC4928 #49AC28 #288BAC
square
#8B28AC #AC4928 #49AC28 #288BAC
split-complementary
#8B28AC #8BAC28 #28AC49
monochromatic
#3B1149 #631C7A #8B28AC #AD3FD2 #C371DE

Accessibility & contrast

On white

7.01
#8B28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8B28AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B28AC
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28AC#FFFFFF#000000##FFFFFF
##8B28AC1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#265CA9
Tritanopia (blue-blind)
#894669
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b28ac;
/* rgb */ color: rgb(139, 40, 172);
/* oklch */ color: oklch(49.1% 0.204 315.9);
Tailwind
colors: {
  custom: {
    50: '#b16dc5',
    500: '#8b28ac',
    950: '#000000',
  },
}
SCSS
$custom: #8b28ac;
$custom-light: #b16dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28ac",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 285,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49054,
    "c": 0.20429,
    "h": 315.9
  },
  "luminance": 0.09985
}

Semantic roles & 50–950 ramp

primary
#8B28AC
secondary
#81C56B
accent
#E5426B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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