#8B2DB7#8B2DB7

#8B2DB7 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.209 H 312.3°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#8B2DB7
RGBrgb(139, 45, 183)
HSLhsl(281, 61%, 45%)
HSVhsv(281, 75%, 72%)
CMYKcmyk(24%, 75.4%, 0%, 28.2%)
CIE-LABlab(39.22, 60.04, -54.67)
CIE-LCHlch(39.22, 81.20, 317.68°)
OKLaboklab(50.29% 0.1406 -0.1546)
OKLCHoklch(50.29% 0.209 312.3)
XYZxyz(20.1315, 10.7852, 45.8118)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2DB7 #59B72D
analogous
#462DB7 #8B2DB7 #B72D9E
triadic
#8B2DB7 #B78B2D #2DB78B
tetradic
#8B2DB7 #B7462D #59B72D #2D9EB7
square
#8B2DB7 #B7462D #59B72D #2D9EB7
split-complementary
#8B2DB7 #9EB72D #2DB746
monochromatic
#401555 #662186 #8B2DB7 #A94ED3 #C17FDF

Accessibility & contrast

On white

6.65
#8B2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8B2DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2DB7
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2DB7#FFFFFF#000000##FFFFFF
##8B2DB71.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#195EB4
Tritanopia (blue-blind)
#864D70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b2db7;
/* rgb */ color: rgb(139, 45, 183);
/* oklch */ color: oklch(50.3% 0.209 312.3);
Tailwind
colors: {
  custom: {
    50: '#b170cd',
    500: '#8b2db7',
    950: '#000000',
  },
}
SCSS
$custom: #8b2db7;
$custom-light: #b170cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2db7",
  "rgb": {
    "r": 139,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 280.87,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50286,
    "c": 0.20898,
    "h": 312.3
  },
  "luminance": 0.10785
}

Semantic roles & 50–950 ramp

primary
#8B2DB7
secondary
#91C878
accent
#E44477
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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