#8A2BAC#8A2BAC

#8A2BAC is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.201 H 315.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#8A2BAC
RGBrgb(138, 43, 172)
HSLhsl(284, 60%, 42%)
HSVhsv(284, 75%, 67%)
CMYKcmyk(19.8%, 75%, 0%, 32.5%)
CIE-LABlab(38.04, 58.34, -50.05)
CIE-LCHlch(38.04, 76.87, 319.38°)
OKLaboklab(49.18% 0.1428 -0.1411)
OKLCHoklch(49.18% 0.201 315.3)
XYZxyz(18.7903, 10.1103, 39.9834)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BAC #4DAC2B
analogous
#4A2BAC #8A2BAC #AC2B8E
triadic
#8A2BAC #AC8A2B #2BAC8A
tetradic
#8A2BAC #AC4A2B #4DAC2B #2B8EAC
square
#8A2BAC #AC4A2B #4DAC2B #2B8EAC
split-complementary
#8A2BAC #8EAC2B #2BAC4A
monochromatic
#3B134A #631F7B #8A2BAC #AB44D0 #C175DC

Accessibility & contrast

On white

6.95
#8A2BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A2BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BAC
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BAC#FFFFFF#000000##FFFFFF
##8A2BAC1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#275CA9
Tritanopia (blue-blind)
#87476A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2bac;
/* rgb */ color: rgb(138, 43, 172);
/* oklch */ color: oklch(49.2% 0.201 315.3);
Tailwind
colors: {
  custom: {
    50: '#b06ec5',
    500: '#8a2bac',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bac;
$custom-light: #b06ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bac",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 284.186,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4918,
    "c": 0.20074,
    "h": 315.3
  },
  "luminance": 0.1011
}

Semantic roles & 50–950 ramp

primary
#8A2BAC
secondary
#85C46F
accent
#E3456E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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