#8A28A9#8A28A9

#8A28A9 is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.7% C 0.201 H 316.5°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8A28A9
RGBrgb(138, 40, 169)
HSLhsl(286, 62%, 41%)
HSVhsv(286, 76%, 66%)
CMYKcmyk(18.3%, 76.3%, 0%, 33.7%)
CIE-LABlab(37.46, 58.83, -49.20)
CIE-LCHlch(37.46, 76.69, 320.10°)
OKLaboklab(48.7% 0.146 -0.1386)
OKLCHoklch(48.7% 0.201 316.5)
XYZxyz(18.4004, 9.7862, 38.4481)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28A9 #47A928
analogous
#4928A9 #8A28A9 #A92887
triadic
#8A28A9 #A98A28 #28A98A
tetradic
#8A28A9 #A94928 #47A928 #2887A9
square
#8A28A9 #A94928 #47A928 #2887A9
split-complementary
#8A28A9 #87A928 #28A949
monochromatic
#391146 #621C78 #8A28A9 #AE3DD1 #C26FDD

Accessibility & contrast

On white

7.10
#8A28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28A9
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28A9#FFFFFF#000000##FFFFFF
##8A28A91.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#285BA6
Tritanopia (blue-blind)
#884467
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a28a9;
/* rgb */ color: rgb(138, 40, 169);
/* oklch */ color: oklch(48.7% 0.201 316.5);
Tailwind
colors: {
  custom: {
    50: '#b06dc3',
    500: '#8a28a9',
    950: '#000000',
  },
}
SCSS
$custom: #8a28a9;
$custom-light: #b06dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28a9",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 285.581,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48702,
    "c": 0.20127,
    "h": 316.5
  },
  "luminance": 0.09785
}

Semantic roles & 50–950 ramp

primary
#8A28A9
secondary
#7FC469
accent
#E5436A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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