#8B2DB9#8B2DB9

#8B2DB9 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.4% C 0.211 H 311.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8B2DB9
RGBrgb(139, 45, 185)
HSLhsl(280, 61%, 45%)
HSVhsv(280, 76%, 73%)
CMYKcmyk(24.9%, 75.7%, 0%, 27.5%)
CIE-LABlab(39.36, 60.46, -55.61)
CIE-LCHlch(39.36, 82.15, 317.39°)
OKLaboklab(50.43% 0.1402 -0.1574)
OKLCHoklch(50.43% 0.211 311.7)
XYZxyz(20.3412, 10.8691, 46.9159)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2DB9 #5BB92D
analogous
#452DB9 #8B2DB9 #B92DA1
triadic
#8B2DB9 #B98B2D #2DB98B
tetradic
#8B2DB9 #B9452D #5BB92D #2DA1B9
square
#8B2DB9 #B9452D #5BB92D #2DA1B9
split-complementary
#8B2DB9 #A1B92D #2DB945
monochromatic
#411557 #662188 #8B2DB9 #A84FD4 #C180E0

Accessibility & contrast

On white

6.62
#8B2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B2DB9
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2DB9#FFFFFF#000000##FFFFFF
##8B2DB91.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#145EB6
Tritanopia (blue-blind)
#854E72
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8b2db9;
/* rgb */ color: rgb(139, 45, 185);
/* oklch */ color: oklch(50.4% 0.211 311.7);
Tailwind
colors: {
  custom: {
    50: '#b270cf',
    500: '#8b2db9',
    950: '#000000',
  },
}
SCSS
$custom: #8b2db9;
$custom-light: #b270cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2db9",
  "rgb": {
    "r": 139,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 280.286,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50432,
    "c": 0.21082,
    "h": 311.7
  },
  "luminance": 0.10869
}

Semantic roles & 50–950 ramp

primary
#8B2DB9
secondary
#93C979
accent
#E44478
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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