#8A28AD#8A28AD

#8A28AD is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.0% C 0.205 H 315.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#8A28AD
RGBrgb(138, 40, 173)
HSLhsl(284, 62%, 42%)
HSVhsv(284, 77%, 68%)
CMYKcmyk(20.2%, 76.9%, 0%, 32.2%)
CIE-LABlab(37.73, 59.62, -51.14)
CIE-LCHlch(37.73, 78.55, 319.38°)
OKLaboklab(48.99% 0.1454 -0.1443)
OKLCHoklch(48.99% 0.205 315.2)
XYZxyz(18.7816, 9.9387, 40.4561)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28AD #4BAD28
analogous
#4828AD #8A28AD #AD288D
triadic
#8A28AD #AD8A28 #28AD8A
tetradic
#8A28AD #AD4828 #4BAD28 #288DAD
square
#8A28AD #AD4828 #4BAD28 #288DAD
split-complementary
#8A28AD #8DAD28 #28AD48
monochromatic
#3B114A #621D7B #8A28AD #AC3FD3 #C271DE

Accessibility & contrast

On white

7.03
#8A28AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A28AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28AD
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28AD#FFFFFF#000000##FFFFFF
##8A28AD1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#225BAA
Tritanopia (blue-blind)
#87466A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a28ad;
/* rgb */ color: rgb(138, 40, 173);
/* oklch */ color: oklch(49.0% 0.205 315.2);
Tailwind
colors: {
  custom: {
    50: '#b06dc6',
    500: '#8a28ad',
    950: '#000000',
  },
}
SCSS
$custom: #8a28ad;
$custom-light: #b06dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28ad",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 284.211,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48985,
    "c": 0.20482,
    "h": 315.2
  },
  "luminance": 0.09938
}

Semantic roles & 50–950 ramp

primary
#8A28AD
secondary
#83C56C
accent
#E6426D
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28AD

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

Preview Lab → · Contrast checker → · Palette generator →

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