#8B52D7#8B52D7

#8B52D7 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.9% C 0.196 H 299.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8B52D7
RGBrgb(139, 82, 215)
HSLhsl(266, 62%, 58%)
HSVhsv(266, 62%, 84%)
CMYKcmyk(35.3%, 61.9%, 0%, 15.7%)
CIE-LABlab(47.53, 50.42, -59.79)
CIE-LCHlch(47.53, 78.21, 310.14°)
OKLaboklab(56.94% 0.0978 -0.1699)
OKLCHoklch(56.94% 0.196 299.9)
XYZxyz(25.9275, 16.4296, 66.0821)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B52D7 #9ED752
analogous
#525BD7 #8B52D7 #CD52D7
triadic
#8B52D7 #D78B52 #52D78B
tetradic
#8B52D7 #D7525B #9ED752 #52D7CD
square
#8B52D7 #D7525B #9ED752 #52D7CD
split-complementary
#8B52D7 #D7CD52 #5BD752
monochromatic
#50218E #6B2CC0 #8B52D7 #AC84E2 #CEB5EE

Accessibility & contrast

On white

4.90
#8B52D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8B52D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B52D7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B52D7#FFFFFF#000000##FFFFFF
##8B52D71.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#1D70D4
Tritanopia (blue-blind)
#7A6F8D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8b52d7;
/* rgb */ color: rgb(139, 82, 215);
/* oklch */ color: oklch(56.9% 0.196 299.9);
Tailwind
colors: {
  custom: {
    50: '#b285e4',
    500: '#8b52d7',
    950: '#000000',
  },
}
SCSS
$custom: #8b52d7;
$custom-light: #b285e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b52d7",
  "rgb": {
    "r": 139,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 265.714,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.5694,
    "c": 0.196,
    "h": 299.9
  },
  "luminance": 0.1643
}

Semantic roles & 50–950 ramp

primary
#8B52D7
secondary
#C6DDA8
accent
#E642A0
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8B52D7

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

Preview Lab → · Contrast checker → · Palette generator →

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