#8B2DA7#8B2DA7

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

Color values

HEX#8B2DA7
RGBrgb(139, 45, 167)
HSLhsl(286, 58%, 42%)
HSVhsv(286, 73%, 65%)
CMYKcmyk(16.8%, 73.1%, 0%, 34.5%)
CIE-LABlab(38.12, 56.79, -46.92)
CIE-LCHlch(38.12, 73.67, 320.44°)
OKLaboklab(49.16% 0.1427 -0.1319)
OKLCHoklch(49.16% 0.194 317.3)
XYZxyz(18.5599, 10.1566, 37.5345)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2DA7 #49A72D
analogous
#4E2DA7 #8B2DA7 #A72D86
triadic
#8B2DA7 #A78B2D #2DA78B
tetradic
#8B2DA7 #A74E2D #49A72D #2D86A7
square
#8B2DA7 #A74E2D #49A72D #2D86A7
split-complementary
#8B2DA7 #86A72D #2DA74E
monochromatic
#3B1347 #632077 #8B2DA7 #AD44CD #C375DA

Accessibility & contrast

On white

6.93
#8B2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8B2DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2DA7
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2DA7#FFFFFF#000000##FFFFFF
##8B2DA71.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#305DA4
Tritanopia (blue-blind)
#8A4667
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2da7;
/* rgb */ color: rgb(139, 45, 167);
/* oklch */ color: oklch(49.2% 0.194 317.3);
Tailwind
colors: {
  custom: {
    50: '#b16fc2',
    500: '#8b2da7',
    950: '#000000',
  },
}
SCSS
$custom: #8b2da7;
$custom-light: #b16fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2da7",
  "rgb": {
    "r": 139,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 286.23,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49163,
    "c": 0.19434,
    "h": 317.3
  },
  "luminance": 0.10156
}

Semantic roles & 50–950 ramp

primary
#8B2DA7
secondary
#81C16E
accent
#E1476A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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