#8A28AE#8A28AE

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

Color values

HEX#8A28AE
RGBrgb(138, 40, 174)
HSLhsl(284, 63%, 42%)
HSVhsv(284, 77%, 68%)
CMYKcmyk(20.7%, 77%, 0%, 31.8%)
CIE-LABlab(37.80, 59.82, -51.62)
CIE-LCHlch(37.80, 79.02, 319.21°)
OKLaboklab(49.06% 0.1452 -0.1457)
OKLCHoklch(49.06% 0.206 314.9)
XYZxyz(18.8787, 9.9775, 40.9676)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28AE #4CAE28
analogous
#4728AE #8A28AE #AE288F
triadic
#8A28AE #AE8A28 #28AE8A
tetradic
#8A28AE #AE4728 #4CAE28 #288FAE
square
#8A28AE #AE4728 #4CAE28 #288FAE
split-complementary
#8A28AE #8FAE28 #28AE47
monochromatic
#3B114A #631D7C #8A28AE #AC40D3 #C172DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A28AE#FFFFFF#000000##FFFFFF
##8A28AE1.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)
#0054B2
Deuteranopia (green-blind)
#215BAB
Tritanopia (blue-blind)
#87476A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a28ae;
/* rgb */ color: rgb(138, 40, 174);
/* oklch */ color: oklch(49.1% 0.206 314.9);
Tailwind
colors: {
  custom: {
    50: '#b06dc7',
    500: '#8a28ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a28ae;
$custom-light: #b06dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28ae",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 283.881,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49056,
    "c": 0.20571,
    "h": 314.9
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

primary
#8A28AE
secondary
#84C66C
accent
#E6426E
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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