#8A28AB#8A28AB

#8A28AB is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 48.8% C 0.203 H 315.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8A28AB
RGBrgb(138, 40, 171)
HSLhsl(285, 62%, 41%)
HSVhsv(285, 77%, 67%)
CMYKcmyk(19.3%, 76.6%, 0%, 32.9%)
CIE-LABlab(37.59, 59.23, -50.17)
CIE-LCHlch(37.59, 77.62, 319.73°)
OKLaboklab(48.84% 0.1457 -0.1414)
OKLCHoklch(48.84% 0.203 315.8)
XYZxyz(18.5895, 9.8619, 39.4445)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28AB #49AB28
analogous
#4828AB #8A28AB #AB288B
triadic
#8A28AB #AB8A28 #28AB8A
tetradic
#8A28AB #AB4828 #49AB28 #288BAB
square
#8A28AB #AB4828 #49AB28 #288BAB
split-complementary
#8A28AB #8BAB28 #28AB48
monochromatic
#3A1148 #621C79 #8A28AB #AD3ED2 #C270DE

Accessibility & contrast

On white

7.07
#8A28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28AB
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28AB#FFFFFF#000000##FFFFFF
##8A28AB1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#255BA8
Tritanopia (blue-blind)
#884568
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a28ab;
/* rgb */ color: rgb(138, 40, 171);
/* oklch */ color: oklch(48.8% 0.203 315.8);
Tailwind
colors: {
  custom: {
    50: '#b06dc5',
    500: '#8a28ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a28ab;
$custom-light: #b06dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28ab",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 284.885,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48843,
    "c": 0.20304,
    "h": 315.8
  },
  "luminance": 0.09861
}

Semantic roles & 50–950 ramp

primary
#8A28AB
secondary
#81C46A
accent
#E5436C
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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