#8A28B5#8A28B5

#8A28B5 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.6% C 0.212 H 312.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8A28B5
RGBrgb(138, 40, 181)
HSLhsl(282, 64%, 43%)
HSVhsv(282, 78%, 71%)
CMYKcmyk(23.8%, 77.9%, 0%, 29%)
CIE-LABlab(38.30, 61.24, -54.97)
CIE-LCHlch(38.30, 82.29, 318.09°)
OKLaboklab(49.57% 0.144 -0.1555)
OKLCHoklch(49.57% 0.212 312.8)
XYZxyz(19.5790, 10.2576, 44.6557)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28B5 #53B528
analogous
#4328B5 #8A28B5 #B52899
triadic
#8A28B5 #B58A28 #28B58A
tetradic
#8A28B5 #B54328 #53B528 #2899B5
square
#8A28B5 #B54328 #53B528 #2899B5
split-complementary
#8A28B5 #99B528 #28B543
monochromatic
#3E1251 #641D83 #8A28B5 #A944D6 #C077E1

Accessibility & contrast

On white

6.88
#8A28B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A28B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28B5
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28B5#FFFFFF#000000##FFFFFF
##8A28B51.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#135CB2
Tritanopia (blue-blind)
#854A6E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a28b5;
/* rgb */ color: rgb(138, 40, 181);
/* oklch */ color: oklch(49.6% 0.212 312.8);
Tailwind
colors: {
  custom: {
    50: '#b16dcc',
    500: '#8a28b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a28b5;
$custom-light: #b16dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28b5",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 281.702,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49565,
    "c": 0.21195,
    "h": 312.8
  },
  "luminance": 0.10257
}

Semantic roles & 50–950 ramp

primary
#8A28B5
secondary
#8BC870
accent
#E74174
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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