#8A52C8#8A52C8

#8A52C8 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.8% C 0.178 H 302.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A52C8
RGBrgb(138, 82, 200)
HSLhsl(268, 52%, 55%)
HSVhsv(268, 59%, 78%)
CMYKcmyk(31%, 59%, 0%, 21.6%)
CIE-LABlab(46.46, 46.48, -52.92)
CIE-LCHlch(46.46, 70.44, 311.29°)
OKLaboklab(55.82% 0.097 -0.1497)
OKLCHoklch(55.82% 0.178 302.9)
XYZxyz(23.9215, 15.6080, 56.3848)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52C8 #90C852
analogous
#5255C8 #8A52C8 #C552C8
triadic
#8A52C8 #C88A52 #52C88A
tetradic
#8A52C8 #C85255 #90C852 #52C8C5
square
#8A52C8 #C85255 #90C852 #52C8C5
split-complementary
#8A52C8 #C8C552 #55C852
monochromatic
#4E2779 #6B35A8 #8A52C8 #A980D7 #C9AFE6

Accessibility & contrast

On white

5.10
#8A52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52C8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52C8#FFFFFF#000000##FFFFFF
##8A52C81.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186DCC
Deuteranopia (green-blind)
#346EC5
Tritanopia (blue-blind)
#7E6A85
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a52c8;
/* rgb */ color: rgb(138, 82, 200);
/* oklch */ color: oklch(55.8% 0.178 302.9);
Tailwind
colors: {
  custom: {
    50: '#b085d9',
    500: '#8a52c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a52c8;
$custom-light: #b085d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52c8",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 268.475,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55822,
    "c": 0.17841,
    "h": 302.9
  },
  "luminance": 0.15608
}

Semantic roles & 50–950 ramp

primary
#8A52C8
secondary
#BCD4A2
accent
#DB4D98
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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