#8B4DB2#8B4DB2

#8B4DB2 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.8% C 0.161 H 310.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8B4DB2
RGBrgb(139, 77, 178)
HSLhsl(277, 40%, 50%)
HSVhsv(277, 57%, 70%)
CMYKcmyk(21.9%, 56.7%, 0%, 30.2%)
CIE-LABlab(44.25, 44.18, -43.64)
CIE-LCHlch(44.25, 62.10, 315.35°)
OKLaboklab(53.81% 0.1044 -0.1225)
OKLCHoklch(53.81% 0.161 310.4)
XYZxyz(21.3357, 14.0115, 43.6914)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B4DB2 #74B24D
analogous
#594DB2 #8B4DB2 #B24DA6
triadic
#8B4DB2 #B28B4D #4DB28B
tetradic
#8B4DB2 #B2594D #74B24D #4DA6B2
square
#8B4DB2 #B2594D #74B24D #4DA6B2
split-complementary
#8B4DB2 #A6B24D #4DB259
monochromatic
#48285D #6A3B87 #8B4DB2 #A778C4 #C3A2D7

Accessibility & contrast

On white

5.52
#8B4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8B4DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B4DB2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B4DB2#FFFFFF#000000##FFFFFF
##8B4DB21.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#446AB0
Tritanopia (blue-blind)
#865F78
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8b4db2;
/* rgb */ color: rgb(139, 77, 178);
/* oklch */ color: oklch(53.8% 0.161 310.4);
Tailwind
colors: {
  custom: {
    50: '#af81c9',
    500: '#8b4db2',
    950: '#000000',
  },
}
SCSS
$custom: #8b4db2;
$custom-light: #af81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b4db2",
  "rgb": {
    "r": 139,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 276.832,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.53809,
    "c": 0.16093,
    "h": 310.4
  },
  "luminance": 0.14011
}

Semantic roles & 50–950 ramp

primary
#8B4DB2
secondary
#A8C497
accent
#CF5886
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8B4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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