#8B2DB8#8B2DB8

#8B2DB8 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.4% C 0.210 H 312.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8B2DB8
RGBrgb(139, 45, 184)
HSLhsl(281, 61%, 45%)
HSVhsv(281, 76%, 72%)
CMYKcmyk(24.5%, 75.5%, 0%, 27.8%)
CIE-LABlab(39.29, 60.25, -55.14)
CIE-LCHlch(39.29, 81.67, 317.54°)
OKLaboklab(50.36% 0.1404 -0.156)
OKLCHoklch(50.36% 0.21 312)
XYZxyz(20.2360, 10.8270, 46.3619)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2DB8 #5AB82D
analogous
#462DB8 #8B2DB8 #B82D9F
triadic
#8B2DB8 #B88B2D #2DB88B
tetradic
#8B2DB8 #B8462D #5AB82D #2D9FB8
square
#8B2DB8 #B8462D #5AB82D #2D9FB8
split-complementary
#8B2DB8 #9FB82D #2DB846
monochromatic
#411556 #662187 #8B2DB8 #A94ED4 #C180E0

Accessibility & contrast

On white

6.63
#8B2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8B2DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2DB8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2DB8#FFFFFF#000000##FFFFFF
##8B2DB81.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#165EB5
Tritanopia (blue-blind)
#854D71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8b2db8;
/* rgb */ color: rgb(139, 45, 184);
/* oklch */ color: oklch(50.4% 0.210 312.0);
Tailwind
colors: {
  custom: {
    50: '#b170ce',
    500: '#8b2db8',
    950: '#000000',
  },
}
SCSS
$custom: #8b2db8;
$custom-light: #b170ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2db8",
  "rgb": {
    "r": 139,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 280.576,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50359,
    "c": 0.2099,
    "h": 312
  },
  "luminance": 0.10826
}

Semantic roles & 50–950 ramp

primary
#8B2DB8
secondary
#92C978
accent
#E44478
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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