#9A52CC#9A52CC

#9A52CC is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.9% C 0.187 H 308.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#9A52CC
RGBrgb(154, 82, 204)
HSLhsl(275, 54%, 56%)
HSVhsv(275, 60%, 80%)
CMYKcmyk(24.5%, 59.8%, 0%, 20%)
CIE-LABlab(48.59, 51.24, -51.70)
CIE-LCHlch(48.59, 72.79, 314.75°)
OKLaboklab(57.88% 0.1176 -0.1457)
OKLCHoklch(57.88% 0.187 308.9)
XYZxyz(27.2406, 17.2647, 59.0124)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A52CC #84CC52
analogous
#5D52CC #9A52CC #CC52C1
triadic
#9A52CC #CC9A52 #52CC9A
tetradic
#9A52CC #CC5D52 #84CC52 #52C1CC
square
#9A52CC #CC5D52 #84CC52 #52C1CC
split-complementary
#9A52CC #C1CC52 #52CC5D
monochromatic
#5A257E #7B33AE #9A52CC #B681DA #D1B1E8

Accessibility & contrast

On white

4.72
#9A52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#9A52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A52CC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A52CC#FFFFFF#000000##FFFFFF
##9A52CC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2070D0
Deuteranopia (green-blind)
#4174C9
Tritanopia (blue-blind)
#936987
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9a52cc;
/* rgb */ color: rgb(154, 82, 204);
/* oklch */ color: oklch(57.9% 0.187 308.9);
Tailwind
colors: {
  custom: {
    50: '#bb86dc',
    500: '#9a52cc',
    950: '#000000',
  },
}
SCSS
$custom: #9a52cc;
$custom-light: #bb86dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a52cc",
  "rgb": {
    "r": 154,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 275.41,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57877,
    "c": 0.18721,
    "h": 308.9
  },
  "luminance": 0.17264
}

Semantic roles & 50–950 ramp

primary
#9A52CC
secondary
#B8D6A4
accent
#DE4A87
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9A52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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