#8B2DB2#8B2DB2

#8B2DB2 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 49.9% C 0.204 H 313.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8B2DB2
RGBrgb(139, 45, 178)
HSLhsl(282, 60%, 44%)
HSVhsv(282, 75%, 70%)
CMYKcmyk(21.9%, 74.7%, 0%, 30.2%)
CIE-LABlab(38.87, 59.01, -52.28)
CIE-LCHlch(38.87, 78.84, 318.46°)
OKLaboklab(49.93% 0.1413 -0.1476)
OKLCHoklch(49.93% 0.204 313.8)
XYZxyz(19.6203, 10.5807, 43.1196)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2DB2 #54B22D
analogous
#482DB2 #8B2DB2 #B22D96
triadic
#8B2DB2 #B28B2D #2DB28B
tetradic
#8B2DB2 #B2482D #54B22D #2D96B2
square
#8B2DB2 #B2482D #54B22D #2D96B2
split-complementary
#8B2DB2 #96B22D #2DB248
monochromatic
#3F1450 #652181 #8B2DB2 #AA4BD1 #C17CDE

Accessibility & contrast

On white

6.74
#8B2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8B2DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2DB2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2DB2#FFFFFF#000000##FFFFFF
##8B2DB21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#225EAF
Tritanopia (blue-blind)
#874B6E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b2db2;
/* rgb */ color: rgb(139, 45, 178);
/* oklch */ color: oklch(49.9% 0.204 313.8);
Tailwind
colors: {
  custom: {
    50: '#b170ca',
    500: '#8b2db2',
    950: '#000000',
  },
}
SCSS
$custom: #8b2db2;
$custom-light: #b170ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2db2",
  "rgb": {
    "r": 139,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 282.406,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49926,
    "c": 0.20437,
    "h": 313.8
  },
  "luminance": 0.1058
}

Semantic roles & 50–950 ramp

primary
#8B2DB2
secondary
#8DC675
accent
#E34573
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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