#8A52CD#8A52CD

#8A52CD is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.2% C 0.184 H 301.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A52CD
RGBrgb(138, 82, 205)
HSLhsl(267, 55%, 56%)
HSVhsv(267, 60%, 80%)
CMYKcmyk(32.7%, 60%, 0%, 19.6%)
CIE-LABlab(46.77, 47.71, -55.30)
CIE-LCHlch(46.77, 73.03, 310.79°)
OKLaboklab(56.15% 0.0969 -0.1567)
OKLCHoklch(56.15% 0.184 301.7)
XYZxyz(24.5154, 15.8456, 59.5127)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52CD #95CD52
analogous
#5258CD #8A52CD #C852CD
triadic
#8A52CD #CD8A52 #52CD8A
tetradic
#8A52CD #CD5258 #95CD52 #52CDC8
square
#8A52CD #CD5258 #95CD52 #52CDC8
split-complementary
#8A52CD #CDC852 #58CD52
monochromatic
#4E2580 #6B33AF #8A52CD #AA81DB #CAB1E8

Accessibility & contrast

On white

5.04
#8A52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8A52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52CD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52CD#FFFFFF#000000##FFFFFF
##8A52CD1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086ED1
Deuteranopia (green-blind)
#2E6ECA
Tritanopia (blue-blind)
#7D6C88
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a52cd;
/* rgb */ color: rgb(138, 82, 205);
/* oklch */ color: oklch(56.2% 0.184 301.7);
Tailwind
colors: {
  custom: {
    50: '#b085dd',
    500: '#8a52cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a52cd;
$custom-light: #b085dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52cd",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 267.317,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56153,
    "c": 0.18424,
    "h": 301.7
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#8A52CD
secondary
#C0D7A4
accent
#DE499B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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