#8B52D2#8B52D2

#8B52D2 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.6% C 0.190 H 301.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8B52D2
RGBrgb(139, 82, 210)
HSLhsl(267, 59%, 57%)
HSVhsv(267, 61%, 82%)
CMYKcmyk(33.8%, 61%, 0%, 17.6%)
CIE-LABlab(47.21, 49.18, -57.46)
CIE-LCHlch(47.21, 75.63, 310.56°)
OKLaboklab(56.6% 0.098 -0.163)
OKLCHoklch(56.6% 0.19 301)
XYZxyz(25.2948, 16.1766, 62.7500)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B52D2 #99D252
analogous
#5259D2 #8B52D2 #CB52D2
triadic
#8B52D2 #D28B52 #52D28B
tetradic
#8B52D2 #D25259 #99D252 #52D2CB
square
#8B52D2 #D25259 #99D252 #52D2CB
split-complementary
#8B52D2 #D2CB52 #59D252
monochromatic
#4F2387 #6C30B7 #8B52D2 #AC83DF #CCB3EB

Accessibility & contrast

On white

4.96
#8B52D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8B52D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B52D2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B52D2#FFFFFF#000000##FFFFFF
##8B52D21.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#276FCF
Tritanopia (blue-blind)
#7C6D8A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8b52d2;
/* rgb */ color: rgb(139, 82, 210);
/* oklch */ color: oklch(56.6% 0.190 301.0);
Tailwind
colors: {
  custom: {
    50: '#b185e0',
    500: '#8b52d2',
    950: '#000000',
  },
}
SCSS
$custom: #8b52d2;
$custom-light: #b185e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b52d2",
  "rgb": {
    "r": 139,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 266.719,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56598,
    "c": 0.19023,
    "h": 301
  },
  "luminance": 0.16177
}

Semantic roles & 50–950 ramp

primary
#8B52D2
secondary
#C3DAA6
accent
#E2469C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8B52D2

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

Preview Lab → · Contrast checker → · Palette generator →

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