#8B2DA8#8B2DA8

#8B2DA8 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.195 H 316.9°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8B2DA8
RGBrgb(139, 45, 168)
HSLhsl(286, 58%, 42%)
HSVhsv(286, 73%, 66%)
CMYKcmyk(17.3%, 73.2%, 0%, 34.1%)
CIE-LABlab(38.19, 56.99, -47.41)
CIE-LCHlch(38.19, 74.14, 320.24°)
OKLaboklab(49.23% 0.1426 -0.1333)
OKLCHoklch(49.23% 0.195 316.9)
XYZxyz(18.6527, 10.1937, 38.0232)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2DA8 #4AA82D
analogous
#4E2DA8 #8B2DA8 #A82D88
triadic
#8B2DA8 #A88B2D #2DA88B
tetradic
#8B2DA8 #A84E2D #4AA82D #2D88A8
square
#8B2DA8 #A84E2D #4AA82D #2D88A8
split-complementary
#8B2DA8 #88A82D #2DA84E
monochromatic
#3B1347 #632078 #8B2DA8 #AD45CD #C275DA

Accessibility & contrast

On white

6.91
#8B2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B2DA8
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2DA8#FFFFFF#000000##FFFFFF
##8B2DA81.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#2F5DA5
Tritanopia (blue-blind)
#894668
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2da8;
/* rgb */ color: rgb(139, 45, 168);
/* oklch */ color: oklch(49.2% 0.195 316.9);
Tailwind
colors: {
  custom: {
    50: '#b16fc2',
    500: '#8b2da8',
    950: '#000000',
  },
}
SCSS
$custom: #8b2da8;
$custom-light: #b16fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2da8",
  "rgb": {
    "r": 139,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 285.854,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49231,
    "c": 0.19524,
    "h": 316.9
  },
  "luminance": 0.10193
}

Semantic roles & 50–950 ramp

primary
#8B2DA8
secondary
#82C26F
accent
#E1476B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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