#8A52D4#8A52D4

#8A52D4 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.6% C 0.192 H 300.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A52D4
RGBrgb(138, 82, 212)
HSLhsl(266, 60%, 58%)
HSVhsv(266, 61%, 83%)
CMYKcmyk(34.9%, 61.3%, 0%, 16.9%)
CIE-LABlab(47.22, 49.45, -58.58)
CIE-LCHlch(47.22, 76.66, 310.17°)
OKLaboklab(56.63% 0.0966 -0.1664)
OKLCHoklch(56.63% 0.192 300.1)
XYZxyz(25.3793, 16.1911, 64.0627)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52D4 #9CD452
analogous
#525BD4 #8A52D4 #CB52D4
triadic
#8A52D4 #D48A52 #52D48A
tetradic
#8A52D4 #D4525B #9CD452 #52D4CB
square
#8A52D4 #D4525B #9CD452 #52D4CB
split-complementary
#8A52D4 #D4CB52 #5BD452
monochromatic
#4F2289 #6B2EBA #8A52D4 #AB83E0 #CCB4EC

Accessibility & contrast

On white

4.95
#8A52D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8A52D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52D4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52D4#FFFFFF#000000##FFFFFF
##8A52D41.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#226FD1
Tritanopia (blue-blind)
#7A6E8B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a52d4;
/* rgb */ color: rgb(138, 82, 212);
/* oklch */ color: oklch(56.6% 0.192 300.1);
Tailwind
colors: {
  custom: {
    50: '#b185e2',
    500: '#8a52d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a52d4;
$custom-light: #b185e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52d4",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 265.846,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56628,
    "c": 0.19237,
    "h": 300.1
  },
  "luminance": 0.16191
}

Semantic roles & 50–950 ramp

primary
#8A52D4
secondary
#C5DBA7
accent
#E3449F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52D4

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

Preview Lab → · Contrast checker → · Palette generator →

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