#8A2DAC#8A2DAC

#8A2DAC is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.199 H 315.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8A2DAC
RGBrgb(138, 45, 172)
HSLhsl(284, 59%, 43%)
HSVhsv(284, 74%, 67%)
CMYKcmyk(19.8%, 73.8%, 0%, 32.5%)
CIE-LABlab(38.30, 57.59, -49.62)
CIE-LCHlch(38.30, 76.02, 319.25°)
OKLaboklab(49.37% 0.1409 -0.1399)
OKLCHoklch(49.37% 0.199 315.2)
XYZxyz(18.8648, 10.2593, 40.0082)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DAC #4FAC2D
analogous
#4B2DAC #8A2DAC #AC2D8E
triadic
#8A2DAC #AC8A2D #2DAC8A
tetradic
#8A2DAC #AC4B2D #4FAC2D #2D8EAC
square
#8A2DAC #AC4B2D #4FAC2D #2D8EAC
split-complementary
#8A2DAC #8EAC2D #2DAC4B
monochromatic
#3C144B #63207B #8A2DAC #AB47CF #C178DC

Accessibility & contrast

On white

6.88
#8A2DAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A2DAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DAC
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DAC#FFFFFF#000000##FFFFFF
##8A2DAC1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#295DA9
Tritanopia (blue-blind)
#87486A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2dac;
/* rgb */ color: rgb(138, 45, 172);
/* oklch */ color: oklch(49.4% 0.199 315.2);
Tailwind
colors: {
  custom: {
    50: '#b06fc5',
    500: '#8a2dac',
    950: '#000000',
  },
}
SCSS
$custom: #8a2dac;
$custom-light: #b06fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2dac",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 283.937,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49367,
    "c": 0.19853,
    "h": 315.2
  },
  "luminance": 0.10259
}

Semantic roles & 50–950 ramp

primary
#8A2DAC
secondary
#87C471
accent
#E24670
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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