#8A28BB#8A28BB

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

Color values

HEX#8A28BB
RGBrgb(138, 40, 187)
HSLhsl(280, 65%, 45%)
HSVhsv(280, 79%, 73%)
CMYKcmyk(26.2%, 78.6%, 0%, 26.7%)
CIE-LABlab(38.74, 62.47, -57.80)
CIE-LCHlch(38.74, 85.11, 317.22°)
OKLaboklab(50.01% 0.1428 -0.1638)
OKLCHoklch(50.01% 0.217 311.1)
XYZxyz(20.2079, 10.5092, 47.9680)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28BB #59BB28
analogous
#4128BB #8A28BB #BB28A3
triadic
#8A28BB #BB8A28 #28BB8A
tetradic
#8A28BB #BB4128 #59BB28 #28A3BB
square
#8A28BB #BB4128 #59BB28 #28A3BB
split-complementary
#8A28BB #A3BB28 #28BB41
monochromatic
#401256 #651D89 #8A28BB #A848D8 #C07BE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A28BB#FFFFFF#000000##FFFFFF
##8A28BB1.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)
#0057BF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#834C72
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a28bb;
/* rgb */ color: rgb(138, 40, 187);
/* oklch */ color: oklch(50.0% 0.217 311.1);
Tailwind
colors: {
  custom: {
    50: '#b16ed0',
    500: '#8a28bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a28bb;
$custom-light: #b16ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28bb",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 280,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50013,
    "c": 0.21733,
    "h": 311.1
  },
  "luminance": 0.10509
}

Semantic roles & 50–950 ramp

primary
#8A28BB
secondary
#91CB74
accent
#E84078
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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