#8A52DE#8A52DE

#8A52DE is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.3% C 0.204 H 298.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A52DE
RGBrgb(138, 82, 222)
HSLhsl(264, 68%, 60%)
HSVhsv(264, 63%, 87%)
CMYKcmyk(37.8%, 63.1%, 0%, 12.9%)
CIE-LABlab(47.89, 51.97, -63.20)
CIE-LCHlch(47.89, 81.83, 309.43°)
OKLaboklab(57.33% 0.0959 -0.1799)
OKLCHoklch(57.33% 0.204 298.1)
XYZxyz(26.6800, 16.7114, 70.9131)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52DE #A6DE52
analogous
#5260DE #8A52DE #D052DE
triadic
#8A52DE #DE8A52 #52DE8A
tetradic
#8A52DE #DE5260 #A6DE52 #52DED0
square
#8A52DE #DE5260 #A6DE52 #52DED0
split-complementary
#8A52DE #DED052 #60DE52
monochromatic
#4E1D99 #6927CC #8A52DE #AD85E8 #D0B9F2

Accessibility & contrast

On white

4.84
#8A52DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#8A52DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52DE
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52DE#FFFFFF#000000##FFFFFF
##8A52DE1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E2
Deuteranopia (green-blind)
#0070DB
Tritanopia (blue-blind)
#767191
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a52de;
/* rgb */ color: rgb(138, 82, 222);
/* oklch */ color: oklch(57.3% 0.204 298.1);
Tailwind
colors: {
  custom: {
    50: '#b286e9',
    500: '#8a52de',
    950: '#000000',
  },
}
SCSS
$custom: #8a52de;
$custom-light: #b286e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52de",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 222
  },
  "hsl": {
    "h": 264,
    "s": 67.961,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57327,
    "c": 0.20392,
    "h": 298.1
  },
  "luminance": 0.16712
}

Semantic roles & 50–950 ramp

primary
#8A52DE
secondary
#CBE1AB
accent
#EB3DA5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A52DE

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

Preview Lab → · Contrast checker → · Palette generator →

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