#8A52DB#8A52DB

#8A52DB is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.1% C 0.200 H 298.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A52DB
RGBrgb(138, 82, 219)
HSLhsl(265, 66%, 59%)
HSVhsv(265, 63%, 86%)
CMYKcmyk(37%, 62.6%, 0%, 14.1%)
CIE-LABlab(47.69, 51.21, -61.82)
CIE-LCHlch(47.69, 80.28, 309.64°)
OKLaboklab(57.11% 0.0962 -0.1759)
OKLCHoklch(57.11% 0.2 298.7)
XYZxyz(26.2815, 16.5520, 68.8143)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52DB #A3DB52
analogous
#525FDB #8A52DB #CF52DB
triadic
#8A52DB #DB8A52 #52DB8A
tetradic
#8A52DB #DB525F #A3DB52 #52DBCF
square
#8A52DB #DB525F #A3DB52 #52DBCF
split-complementary
#8A52DB #DBCF52 #5FDB52
monochromatic
#4F1F94 #6A29C6 #8A52DB #AC85E6 #CFB7F0

Accessibility & contrast

On white

4.87
#8A52DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8A52DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52DB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52DB#FFFFFF#000000##FFFFFF
##8A52DB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#0E70D8
Tritanopia (blue-blind)
#77708F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a52db;
/* rgb */ color: rgb(138, 82, 219);
/* oklch */ color: oklch(57.1% 0.200 298.7);
Tailwind
colors: {
  custom: {
    50: '#b185e7',
    500: '#8a52db',
    950: '#000000',
  },
}
SCSS
$custom: #8a52db;
$custom-light: #b185e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52db",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 264.526,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57114,
    "c": 0.20046,
    "h": 298.7
  },
  "luminance": 0.16552
}

Semantic roles & 50–950 ramp

primary
#8A52DB
secondary
#C9DFAA
accent
#E93FA3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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