#8A28AC#8A28AC

#8A28AC is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 48.9% C 0.204 H 315.5°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8A28AC
RGBrgb(138, 40, 172)
HSLhsl(285, 62%, 42%)
HSVhsv(285, 77%, 67%)
CMYKcmyk(19.8%, 76.7%, 0%, 32.5%)
CIE-LABlab(37.66, 59.43, -50.66)
CIE-LCHlch(37.66, 78.09, 319.55°)
OKLaboklab(48.91% 0.1455 -0.1429)
OKLCHoklch(48.91% 0.204 315.5)
XYZxyz(18.6852, 9.9001, 39.9484)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28AC #4AAC28
analogous
#4828AC #8A28AC #AC288C
triadic
#8A28AC #AC8A28 #28AC8A
tetradic
#8A28AC #AC4828 #4AAC28 #288CAC
square
#8A28AC #AC4828 #4AAC28 #288CAC
split-complementary
#8A28AC #8CAC28 #28AC48
monochromatic
#3A1149 #621C7A #8A28AC #AC3FD2 #C271DE

Accessibility & contrast

On white

7.05
#8A28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28AC
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28AC#FFFFFF#000000##FFFFFF
##8A28AC1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#245BA9
Tritanopia (blue-blind)
#874669
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a28ac;
/* rgb */ color: rgb(138, 40, 172);
/* oklch */ color: oklch(48.9% 0.204 315.5);
Tailwind
colors: {
  custom: {
    50: '#b06dc5',
    500: '#8a28ac',
    950: '#000000',
  },
}
SCSS
$custom: #8a28ac;
$custom-light: #b06dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28ac",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 284.545,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48913,
    "c": 0.20393,
    "h": 315.5
  },
  "luminance": 0.09899
}

Semantic roles & 50–950 ramp

primary
#8A28AC
secondary
#82C56B
accent
#E5426C
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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