#8B3AD9#8B3AD9

#8B3AD9 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.1% C 0.228 H 302.5°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8B3AD9
RGBrgb(139, 58, 217)
HSLhsl(271, 68%, 54%)
HSVhsv(271, 73%, 85%)
CMYKcmyk(35.9%, 73.3%, 0%, 14.9%)
CIE-LABlab(43.54, 62.34, -67.40)
CIE-LCHlch(43.54, 91.81, 312.77°)
OKLaboklab(54.13% 0.1223 -0.1922)
OKLCHoklch(54.13% 0.228 302.5)
XYZxyz(24.6819, 13.5248, 66.9424)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3AD9 #88D93A
analogous
#3C3AD9 #8B3AD9 #D93AD8
triadic
#8B3AD9 #D98B3A #3AD98B
tetradic
#8B3AD9 #D93C3A #88D93A #3AD8D9
square
#8B3AD9 #D93C3A #88D93A #3AD8D9
split-complementary
#8B3AD9 #D8D93A #3AD93C
monochromatic
#4D1980 #6C23B3 #8B3AD9 #A96DE3 #C7A1ED

Accessibility & contrast

On white

5.67
#8B3AD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8B3AD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3AD9
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3AD9#FFFFFF#000000##FFFFFF
##8B3AD91.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DE
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#7B6287
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b3ad9;
/* rgb */ color: rgb(139, 58, 217);
/* oklch */ color: oklch(54.1% 0.228 302.5);
Tailwind
colors: {
  custom: {
    50: '#b378e6',
    500: '#8b3ad9',
    950: '#000000',
  },
}
SCSS
$custom: #8b3ad9;
$custom-light: #b378e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3ad9",
  "rgb": {
    "r": 139,
    "g": 58,
    "b": 217
  },
  "hsl": {
    "h": 270.566,
    "s": 67.66,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54128,
    "c": 0.22777,
    "h": 302.5
  },
  "luminance": 0.13525
}

Semantic roles & 50–950 ramp

primary
#8B3AD9
secondary
#B7D995
accent
#EB3D92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8B3AD9

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

Preview Lab → · Contrast checker → · Palette generator →

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