#8A52C4#8A52C4

#8A52C4 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.6% C 0.174 H 303.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A52C4
RGBrgb(138, 82, 196)
HSLhsl(269, 49%, 55%)
HSVhsv(269, 58%, 77%)
CMYKcmyk(29.6%, 58.2%, 0%, 23.1%)
CIE-LABlab(46.21, 45.50, -51.01)
CIE-LCHlch(46.21, 68.35, 311.73°)
OKLaboklab(55.56% 0.097 -0.1441)
OKLCHoklch(55.56% 0.174 303.9)
XYZxyz(23.4601, 15.4235, 53.9549)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52C4 #8CC452
analogous
#5253C4 #8A52C4 #C352C4
triadic
#8A52C4 #C48A52 #52C48A
tetradic
#8A52C4 #C45253 #8CC452 #52C4C3
square
#8A52C4 #C45253 #8CC452 #52C4C3
split-complementary
#8A52C4 #C4C352 #53C452
monochromatic
#4D2874 #6B37A2 #8A52C4 #A980D4 #C8ADE3

Accessibility & contrast

On white

5.14
#8A52C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8A52C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52C4
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52C4#FFFFFF#000000##FFFFFF
##8A52C41.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206CC8
Deuteranopia (green-blind)
#386DC1
Tritanopia (blue-blind)
#7F6983
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a52c4;
/* rgb */ color: rgb(138, 82, 196);
/* oklch */ color: oklch(55.6% 0.174 303.9);
Tailwind
colors: {
  custom: {
    50: '#b085d6',
    500: '#8a52c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a52c4;
$custom-light: #b085d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52c4",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 269.474,
    "s": 49.138,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55563,
    "c": 0.17373,
    "h": 303.9
  },
  "luminance": 0.15423
}

Semantic roles & 50–950 ramp

primary
#8A52C4
secondary
#B9D1A1
accent
#D94F95
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A52C4

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

Preview Lab → · Contrast checker → · Palette generator →

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