#8A52CB#8A52CB

#8A52CB is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.0% C 0.182 H 302.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8A52CB
RGBrgb(138, 82, 203)
HSLhsl(268, 54%, 56%)
HSVhsv(268, 60%, 80%)
CMYKcmyk(32%, 59.6%, 0%, 20.4%)
CIE-LABlab(46.64, 47.22, -54.35)
CIE-LCHlch(46.64, 72.00, 310.98°)
OKLaboklab(56.02% 0.0969 -0.1539)
OKLCHoklch(56.02% 0.182 302.2)
XYZxyz(24.2755, 15.7496, 58.2494)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52CB #93CB52
analogous
#5256CB #8A52CB #C752CB
triadic
#8A52CB #CB8A52 #52CB8A
tetradic
#8A52CB #CB5256 #93CB52 #52CBC7
square
#8A52CB #CB5256 #93CB52 #52CBC7
split-complementary
#8A52CB #CBC752 #56CB52
monochromatic
#4E267D #6B34AC #8A52CB #AA81D9 #CAB0E7

Accessibility & contrast

On white

5.06
#8A52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#8A52CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52CB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52CB#FFFFFF#000000##FFFFFF
##8A52CB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106ECF
Deuteranopia (green-blind)
#306EC8
Tritanopia (blue-blind)
#7D6B87
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a52cb;
/* rgb */ color: rgb(138, 82, 203);
/* oklch */ color: oklch(56.0% 0.182 302.2);
Tailwind
colors: {
  custom: {
    50: '#b085db',
    500: '#8a52cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a52cb;
$custom-light: #b085db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52cb",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 267.769,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5602,
    "c": 0.18191,
    "h": 302.2
  },
  "luminance": 0.1575
}

Semantic roles & 50–950 ramp

primary
#8A52CB
secondary
#BED5A3
accent
#DD4B99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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