#8028AA#8028AA

#8028AA is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.199 H 312.0°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#8028AA
RGBrgb(128, 40, 170)
HSLhsl(281, 62%, 41%)
HSVhsv(281, 76%, 67%)
CMYKcmyk(24.7%, 76.5%, 0%, 33.3%)
CIE-LABlab(36.00, 57.09, -52.22)
CIE-LCHlch(36.00, 77.37, 317.55°)
OKLaboklab(47.39% 0.1329 -0.1478)
OKLCHoklch(47.39% 0.199 312)
XYZxyz(16.9152, 9.0095, 38.8704)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8028AA #52AA28
analogous
#3F28AA #8028AA #AA2893
triadic
#8028AA #AA8028 #28AA80
tetradic
#8028AA #AA3F28 #52AA28 #2893AA
square
#8028AA #AA3F28 #52AA28 #2893AA
split-complementary
#8028AA #93AA28 #28AA3F
monochromatic
#351147 #5B1C78 #8028AA #A23ED2 #BA6FDD

Accessibility & contrast

On white

7.50
#8028AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8028AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8028AA
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8028AA#FFFFFF#000000##FFFFFF
##8028AA1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#1256A7
Tritanopia (blue-blind)
#7B4768
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8028aa;
/* rgb */ color: rgb(128, 40, 170);
/* oklch */ color: oklch(47.4% 0.199 312.0);
Tailwind
colors: {
  custom: {
    50: '#a96cc4',
    500: '#8028aa',
    950: '#000000',
  },
}
SCSS
$custom: #8028aa;
$custom-light: #a96cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8028aa",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 280.615,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47389,
    "c": 0.19876,
    "h": 312
  },
  "luminance": 0.09009
}

Semantic roles & 50–950 ramp

primary
#8028AA
secondary
#87C46A
accent
#E54377
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #8028AA

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

Preview Lab → · Contrast checker → · Palette generator →

#8028AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva