#8A28A1#8A28A1

#8A28A1 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.194 H 319.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8A28A1
RGBrgb(138, 40, 161)
HSLhsl(289, 60%, 39%)
HSVhsv(289, 75%, 63%)
CMYKcmyk(14.3%, 75.2%, 0%, 36.9%)
CIE-LABlab(36.92, 57.27, -45.26)
CIE-LCHlch(36.92, 73.00, 321.69°)
OKLaboklab(48.15% 0.1469 -0.127)
OKLCHoklch(48.15% 0.194 319.2)
XYZxyz(17.6722, 9.4949, 34.6131)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28A1 #3FA128
analogous
#4E28A1 #8A28A1 #A1287C
triadic
#8A28A1 #A18A28 #28A18A
tetradic
#8A28A1 #A14E28 #3FA128 #287CA1
square
#8A28A1 #A14E28 #3FA128 #287CA1
split-complementary
#8A28A1 #7CA128 #28A14E
monochromatic
#36103F #601C70 #8A28A1 #B139CE #C56ADA

Accessibility & contrast

On white

7.24
#8A28A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A28A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28A1
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28A1#FFFFFF#000000##FFFFFF
##8A28A11.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#315A9E
Tritanopia (blue-blind)
#8A4163
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a28a1;
/* rgb */ color: rgb(138, 40, 161);
/* oklch */ color: oklch(48.2% 0.194 319.2);
Tailwind
colors: {
  custom: {
    50: '#b06dbd',
    500: '#8a28a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a28a1;
$custom-light: #b06dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28a1",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 288.595,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48152,
    "c": 0.19423,
    "h": 319.2
  },
  "luminance": 0.09494
}

Semantic roles & 50–950 ramp

primary
#8A28A1
secondary
#76C065
accent
#E34463
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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