#9A52DB#9A52DB

#9A52DB is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.8% C 0.204 H 305.1°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9A52DB
RGBrgb(154, 82, 219)
HSLhsl(272, 66%, 59%)
HSVhsv(272, 63%, 86%)
CMYKcmyk(29.7%, 62.6%, 0%, 14.1%)
CIE-LABlab(49.52, 54.69, -58.78)
CIE-LCHlch(49.52, 80.29, 312.93°)
OKLaboklab(58.85% 0.1171 -0.1664)
OKLCHoklch(58.85% 0.204 305.1)
XYZxyz(29.1271, 18.0193, 68.9477)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A52DB #93DB52
analogous
#5652DB #9A52DB #DB52D7
triadic
#9A52DB #DB9A52 #52DB9A
tetradic
#9A52DB #DB5652 #93DB52 #52D7DB
square
#9A52DB #DB5652 #93DB52 #52D7DB
split-complementary
#9A52DB #D7DB52 #52DB56
monochromatic
#5C1F94 #7C29C6 #9A52DB #B885E6 #D5B7F0

Accessibility & contrast

On white

4.56
#9A52DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#9A52DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A52DB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A52DB#FFFFFF#000000##000000
##9A52DB1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#3076D8
Tritanopia (blue-blind)
#8F6F8F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9a52db;
/* rgb */ color: rgb(154, 82, 219);
/* oklch */ color: oklch(58.8% 0.204 305.1);
Tailwind
colors: {
  custom: {
    50: '#bc86e7',
    500: '#9a52db',
    950: '#000000',
  },
}
SCSS
$custom: #9a52db;
$custom-light: #bc86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a52db",
  "rgb": {
    "r": 154,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 271.533,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58847,
    "c": 0.20353,
    "h": 305.1
  },
  "luminance": 0.18019
}

Semantic roles & 50–950 ramp

primary
#9A52DB
secondary
#C3DFAA
accent
#E93F90
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9A52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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