#9B52CC#9B52CC

#9B52CC is a mid, vivid violet. Relative luminance 0.174; OKLCH L 58.0% C 0.188 H 309.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9B52CC
RGBrgb(155, 82, 204)
HSLhsl(276, 54%, 56%)
HSVhsv(276, 60%, 80%)
CMYKcmyk(24%, 59.8%, 0%, 20%)
CIE-LABlab(48.71, 51.48, -51.50)
CIE-LCHlch(48.71, 72.82, 314.99°)
OKLaboklab(57.99% 0.1189 -0.145)
OKLCHoklch(57.99% 0.188 309.3)
XYZxyz(27.4318, 17.3633, 59.0214)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B52CC #83CC52
analogous
#5E52CC #9B52CC #CC52C0
triadic
#9B52CC #CC9B52 #52CC9B
tetradic
#9B52CC #CC5E52 #83CC52 #52C0CC
square
#9B52CC #CC5E52 #83CC52 #52C0CC
split-complementary
#9B52CC #C0CC52 #52CC5E
monochromatic
#5B257E #7C33AE #9B52CC #B681DA #D2B1E8

Accessibility & contrast

On white

4.70
#9B52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#9B52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B52CC
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B52CC#FFFFFF#000000##FFFFFF
##9B52CC1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2171D0
Deuteranopia (green-blind)
#4375C9
Tritanopia (blue-blind)
#946987
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9b52cc;
/* rgb */ color: rgb(155, 82, 204);
/* oklch */ color: oklch(58.0% 0.188 309.3);
Tailwind
colors: {
  custom: {
    50: '#bc86dc',
    500: '#9b52cc',
    950: '#000000',
  },
}
SCSS
$custom: #9b52cc;
$custom-light: #bc86dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b52cc",
  "rgb": {
    "r": 155,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 275.902,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57993,
    "c": 0.18752,
    "h": 309.3
  },
  "luminance": 0.17363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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