#9A52CB#9A52CB

#9A52CB is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.8% C 0.186 H 309.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9A52CB
RGBrgb(154, 82, 203)
HSLhsl(276, 54%, 56%)
HSVhsv(276, 60%, 80%)
CMYKcmyk(24.1%, 59.6%, 0%, 20.4%)
CIE-LABlab(48.53, 51.02, -51.22)
CIE-LCHlch(48.53, 72.29, 314.89°)
OKLaboklab(57.81% 0.1176 -0.1443)
OKLCHoklch(57.81% 0.186 309.2)
XYZxyz(27.1211, 17.2169, 58.3828)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A52CB #83CB52
analogous
#5D52CB #9A52CB #CB52C0
triadic
#9A52CB #CB9A52 #52CB9A
tetradic
#9A52CB #CB5D52 #83CB52 #52C0CB
square
#9A52CB #CB5D52 #83CB52 #52C0CB
split-complementary
#9A52CB #C0CB52 #52CB5D
monochromatic
#5A267D #7B34AC #9A52CB #B581D9 #D1B0E7

Accessibility & contrast

On white

4.73
#9A52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#9A52CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A52CB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A52CB#FFFFFF#000000##FFFFFF
##9A52CB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2270CF
Deuteranopia (green-blind)
#4274C8
Tritanopia (blue-blind)
#936987
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9a52cb;
/* rgb */ color: rgb(154, 82, 203);
/* oklch */ color: oklch(57.8% 0.186 309.2);
Tailwind
colors: {
  custom: {
    50: '#bb86db',
    500: '#9a52cb',
    950: '#000000',
  },
}
SCSS
$custom: #9a52cb;
$custom-light: #bb86db;
$custom-dark: #000000;
JSON
{
  "hex": "#9a52cb",
  "rgb": {
    "r": 154,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 275.702,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57814,
    "c": 0.18613,
    "h": 309.2
  },
  "luminance": 0.17216
}

Semantic roles & 50–950 ramp

primary
#9A52CB
secondary
#B8D5A3
accent
#DD4B86
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9A52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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