#8A2DAB#8A2DAB

#8A2DAB is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.198 H 315.5°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8A2DAB
RGBrgb(138, 45, 171)
HSLhsl(284, 58%, 42%)
HSVhsv(284, 74%, 67%)
CMYKcmyk(19.3%, 73.7%, 0%, 32.9%)
CIE-LABlab(38.24, 57.39, -49.13)
CIE-LCHlch(38.24, 75.55, 319.43°)
OKLaboklab(49.3% 0.141 -0.1384)
OKLCHoklch(49.3% 0.198 315.5)
XYZxyz(18.7691, 10.2210, 39.5044)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DAB #4EAB2D
analogous
#4B2DAB #8A2DAB #AB2D8D
triadic
#8A2DAB #AB8A2D #2DAB8A
tetradic
#8A2DAB #AB4B2D #4EAB2D #2D8DAB
square
#8A2DAB #AB4B2D #4EAB2D #2D8DAB
split-complementary
#8A2DAB #8DAB2D #2DAB4B
monochromatic
#3C144A #63207B #8A2DAB #AB47CE #C177DB

Accessibility & contrast

On white

6.90
#8A2DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A2DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DAB
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DAB#FFFFFF#000000##FFFFFF
##8A2DAB1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#2A5CA8
Tritanopia (blue-blind)
#88486A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2dab;
/* rgb */ color: rgb(138, 45, 171);
/* oklch */ color: oklch(49.3% 0.198 315.5);
Tailwind
colors: {
  custom: {
    50: '#b06fc5',
    500: '#8a2dab',
    950: '#000000',
  },
}
SCSS
$custom: #8a2dab;
$custom-light: #b06fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2dab",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 284.286,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49298,
    "c": 0.19761,
    "h": 315.5
  },
  "luminance": 0.1022
}

Semantic roles & 50–950 ramp

primary
#8A2DAB
secondary
#86C371
accent
#E2466F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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