#8A28A8#8A28A8

#8A28A8 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.6% C 0.200 H 316.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8A28A8
RGBrgb(138, 40, 168)
HSLhsl(286, 62%, 41%)
HSVhsv(286, 76%, 66%)
CMYKcmyk(17.9%, 76.2%, 0%, 34.1%)
CIE-LABlab(37.39, 58.63, -48.71)
CIE-LCHlch(37.39, 76.23, 320.28°)
OKLaboklab(48.63% 0.1461 -0.1371)
OKLCHoklch(48.63% 0.2 316.8)
XYZxyz(18.3068, 9.7488, 37.9556)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28A8 #46A828
analogous
#4A28A8 #8A28A8 #A82886
triadic
#8A28A8 #A88A28 #28A88A
tetradic
#8A28A8 #A84A28 #46A828 #2886A8
square
#8A28A8 #A84A28 #46A828 #2886A8
split-complementary
#8A28A8 #86A828 #28A84A
monochromatic
#391045 #611C77 #8A28A8 #AE3DD1 #C36EDC

Accessibility & contrast

On white

7.12
#8A28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28A8
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28A8#FFFFFF#000000##FFFFFF
##8A28A81.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#295BA5
Tritanopia (blue-blind)
#884467
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a28a8;
/* rgb */ color: rgb(138, 40, 168);
/* oklch */ color: oklch(48.6% 0.200 316.8);
Tailwind
colors: {
  custom: {
    50: '#b06dc3',
    500: '#8a28a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a28a8;
$custom-light: #b06dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28a8",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 285.938,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48632,
    "c": 0.20039,
    "h": 316.8
  },
  "luminance": 0.09748
}

Semantic roles & 50–950 ramp

primary
#8A28A8
secondary
#7EC369
accent
#E54369
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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