#8A28B4#8A28B4

#8A28B4 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.211 H 313.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8A28B4
RGBrgb(138, 40, 180)
HSLhsl(282, 64%, 43%)
HSVhsv(282, 78%, 71%)
CMYKcmyk(23.3%, 77.8%, 0%, 29.4%)
CIE-LABlab(38.23, 61.03, -54.50)
CIE-LCHlch(38.23, 81.82, 318.24°)
OKLaboklab(49.49% 0.1442 -0.1541)
OKLCHoklch(49.49% 0.211 313.1)
XYZxyz(19.4768, 10.2168, 44.1172)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28B4 #52B428
analogous
#4428B4 #8A28B4 #B42898
triadic
#8A28B4 #B48A28 #28B48A
tetradic
#8A28B4 #B44428 #52B428 #2898B4
square
#8A28B4 #B44428 #52B428 #2898B4
split-complementary
#8A28B4 #98B428 #28B444
monochromatic
#3D1250 #641D82 #8A28B4 #AA44D5 #C176E1

Accessibility & contrast

On white

6.90
#8A28B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A28B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28B4
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28B4#FFFFFF#000000##FFFFFF
##8A28B41.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#155CB1
Tritanopia (blue-blind)
#85496E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a28b4;
/* rgb */ color: rgb(138, 40, 180);
/* oklch */ color: oklch(49.5% 0.211 313.1);
Tailwind
colors: {
  custom: {
    50: '#b16dcb',
    500: '#8a28b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a28b4;
$custom-light: #b16dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28b4",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 282,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49491,
    "c": 0.21106,
    "h": 313.1
  },
  "luminance": 0.10216
}

Semantic roles & 50–950 ramp

primary
#8A28B4
secondary
#8AC870
accent
#E74173
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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