#8B52CD#8B52CD

#8B52CD is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.184 H 302.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8B52CD
RGBrgb(139, 82, 205)
HSLhsl(268, 55%, 56%)
HSVhsv(268, 60%, 80%)
CMYKcmyk(32.2%, 60%, 0%, 19.6%)
CIE-LABlab(46.88, 47.94, -55.11)
CIE-LCHlch(46.88, 73.04, 311.02°)
OKLaboklab(56.26% 0.0982 -0.1561)
OKLCHoklch(56.26% 0.184 302.2)
XYZxyz(24.6816, 15.9313, 59.5205)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B52CD #94CD52
analogous
#5257CD #8B52CD #C952CD
triadic
#8B52CD #CD8B52 #52CD8B
tetradic
#8B52CD #CD5257 #94CD52 #52CDC9
square
#8B52CD #CD5257 #94CD52 #52CDC9
split-complementary
#8B52CD #CDC952 #57CD52
monochromatic
#4F2580 #6C33AF #8B52CD #AB81DB #CBB1E8

Accessibility & contrast

On white

5.02
#8B52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8B52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B52CD
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B52CD#FFFFFF#000000##FFFFFF
##8B52CD1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6ED1
Deuteranopia (green-blind)
#2F6FCA
Tritanopia (blue-blind)
#7E6B88
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8b52cd;
/* rgb */ color: rgb(139, 82, 205);
/* oklch */ color: oklch(56.3% 0.184 302.2);
Tailwind
colors: {
  custom: {
    50: '#b185dd',
    500: '#8b52cd',
    950: '#000000',
  },
}
SCSS
$custom: #8b52cd;
$custom-light: #b185dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b52cd",
  "rgb": {
    "r": 139,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 267.805,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56261,
    "c": 0.18444,
    "h": 302.2
  },
  "luminance": 0.15931
}

Semantic roles & 50–950 ramp

primary
#8B52CD
secondary
#BFD7A4
accent
#DE4999
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8B52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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