#8A52DF#8A52DF

#8A52DF is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.4% C 0.205 H 297.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A52DF
RGBrgb(138, 82, 223)
HSLhsl(264, 69%, 60%)
HSVhsv(264, 63%, 87%)
CMYKcmyk(38.1%, 63.2%, 0%, 12.5%)
CIE-LABlab(47.96, 52.23, -63.66)
CIE-LCHlch(47.96, 82.34, 309.37°)
OKLaboklab(57.4% 0.0959 -0.1813)
OKLCHoklch(57.4% 0.205 297.9)
XYZxyz(26.8144, 16.7652, 71.6210)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52DF #A7DF52
analogous
#5261DF #8A52DF #D152DF
triadic
#8A52DF #DF8A52 #52DF8A
tetradic
#8A52DF #DF5261 #A7DF52 #52DFD1
square
#8A52DF #DF5261 #A7DF52 #52DFD1
split-complementary
#8A52DF #DFD152 #61DF52
monochromatic
#4E1D9A #6926CE #8A52DF #AD86E9 #D0B9F2

Accessibility & contrast

On white

4.82
#8A52DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8A52DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52DF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52DF#FFFFFF#000000##FFFFFF
##8A52DF1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#0070DC
Tritanopia (blue-blind)
#767291
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a52df;
/* rgb */ color: rgb(138, 82, 223);
/* oklch */ color: oklch(57.4% 0.205 297.9);
Tailwind
colors: {
  custom: {
    50: '#b286ea',
    500: '#8a52df',
    950: '#000000',
  },
}
SCSS
$custom: #8a52df;
$custom-light: #b286ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52df",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 263.83,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57398,
    "c": 0.20506,
    "h": 297.9
  },
  "luminance": 0.16766
}

Semantic roles & 50–950 ramp

primary
#8A52DF
secondary
#CCE2AB
accent
#EC3CA6
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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