#8B52CC#8B52CC

#8B52CC is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.183 H 302.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8B52CC
RGBrgb(139, 82, 204)
HSLhsl(268, 54%, 56%)
HSVhsv(268, 60%, 80%)
CMYKcmyk(31.9%, 59.8%, 0%, 20%)
CIE-LABlab(46.82, 47.69, -54.64)
CIE-LCHlch(46.82, 72.53, 311.12°)
OKLaboklab(56.19% 0.0982 -0.1547)
OKLCHoklch(56.19% 0.183 302.4)
XYZxyz(24.5613, 15.8832, 58.8868)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B52CC #93CC52
analogous
#5256CC #8B52CC #C852CC
triadic
#8B52CC #CC8B52 #52CC8B
tetradic
#8B52CC #CC5256 #93CC52 #52CCC8
square
#8B52CC #CC5256 #93CC52 #52CCC8
split-complementary
#8B52CC #CCC852 #56CC52
monochromatic
#4F257E #6C33AE #8B52CC #AB81DA #CAB1E8

Accessibility & contrast

On white

5.03
#8B52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8B52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B52CC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B52CC#FFFFFF#000000##FFFFFF
##8B52CC1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6ED0
Deuteranopia (green-blind)
#306FC9
Tritanopia (blue-blind)
#7E6B87
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8b52cc;
/* rgb */ color: rgb(139, 82, 204);
/* oklch */ color: oklch(56.2% 0.183 302.4);
Tailwind
colors: {
  custom: {
    50: '#b185dc',
    500: '#8b52cc',
    950: '#000000',
  },
}
SCSS
$custom: #8b52cc;
$custom-light: #b185dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b52cc",
  "rgb": {
    "r": 139,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 268.033,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56195,
    "c": 0.18327,
    "h": 302.4
  },
  "luminance": 0.15883
}

Semantic roles & 50–950 ramp

primary
#8B52CC
secondary
#BFD6A4
accent
#DE4A99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8B52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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