#8A52D8#8A52D8

#8A52D8 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.9% C 0.197 H 299.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A52D8
RGBrgb(138, 82, 216)
HSLhsl(265, 63%, 58%)
HSVhsv(265, 62%, 85%)
CMYKcmyk(36.1%, 62%, 0%, 15.3%)
CIE-LABlab(47.49, 50.46, -60.44)
CIE-LCHlch(47.49, 78.73, 309.86°)
OKLaboklab(56.9% 0.0964 -0.1718)
OKLCHoklch(56.9% 0.197 299.3)
XYZxyz(25.8901, 16.3955, 66.7531)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52D8 #A0D852
analogous
#525DD8 #8A52D8 #CD52D8
triadic
#8A52D8 #D88A52 #52D88A
tetradic
#8A52D8 #D8525D #A0D852 #52D8CD
square
#8A52D8 #D8525D #A0D852 #52D8CD
split-complementary
#8A52D8 #D8CD52 #5DD852
monochromatic
#4F208F #6A2CC1 #8A52D8 #AC84E3 #CEB6EF

Accessibility & contrast

On white

4.91
#8A52D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8A52D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52D8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52D8#FFFFFF#000000##FFFFFF
##8A52D81.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DC
Deuteranopia (green-blind)
#196FD5
Tritanopia (blue-blind)
#796F8D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a52d8;
/* rgb */ color: rgb(138, 82, 216);
/* oklch */ color: oklch(56.9% 0.197 299.3);
Tailwind
colors: {
  custom: {
    50: '#b185e5',
    500: '#8a52d8',
    950: '#000000',
  },
}
SCSS
$custom: #8a52d8;
$custom-light: #b185e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52d8",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 265.075,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56904,
    "c": 0.197,
    "h": 299.3
  },
  "luminance": 0.16396
}

Semantic roles & 50–950 ramp

primary
#8A52D8
secondary
#C7DDA8
accent
#E642A1
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A52D8

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

Preview Lab → · Contrast checker → · Palette generator →

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