#8A52D9#8A52D9

#8A52D9 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 57.0% C 0.198 H 299.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A52D9
RGBrgb(138, 82, 217)
HSLhsl(265, 64%, 59%)
HSVhsv(265, 62%, 85%)
CMYKcmyk(36.4%, 62.2%, 0%, 14.9%)
CIE-LABlab(47.56, 50.71, -60.90)
CIE-LCHlch(47.56, 79.25, 309.78°)
OKLaboklab(56.97% 0.0963 -0.1732)
OKLCHoklch(56.97% 0.198 299.1)
XYZxyz(26.0198, 16.4473, 67.4360)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52D9 #A1D952
analogous
#525DD9 #8A52D9 #CD52D9
triadic
#8A52D9 #D98A52 #52D98A
tetradic
#8A52D9 #D9525D #A1D952 #52D9CD
square
#8A52D9 #D9525D #A1D952 #52D9CD
split-complementary
#8A52D9 #D9CD52 #5DD952
monochromatic
#4F2091 #6A2BC3 #8A52D9 #AC84E4 #CEB6EF

Accessibility & contrast

On white

4.90
#8A52D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8A52D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52D9
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52D9#FFFFFF#000000##FFFFFF
##8A52D91.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#1670D6
Tritanopia (blue-blind)
#78708E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a52d9;
/* rgb */ color: rgb(138, 82, 217);
/* oklch */ color: oklch(57.0% 0.198 299.1);
Tailwind
colors: {
  custom: {
    50: '#b185e6',
    500: '#8a52d9',
    950: '#000000',
  },
}
SCSS
$custom: #8a52d9;
$custom-light: #b185e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52d9",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 217
  },
  "hsl": {
    "h": 264.889,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56974,
    "c": 0.19816,
    "h": 299.1
  },
  "luminance": 0.16448
}

Semantic roles & 50–950 ramp

primary
#8A52D9
secondary
#C8DEA9
accent
#E741A2
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A52D9

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

Preview Lab → · Contrast checker → · Palette generator →

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