#9952CC#9952CC

#9952CC is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.8% C 0.187 H 308.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9952CC
RGBrgb(153, 82, 204)
HSLhsl(275, 54%, 56%)
HSVhsv(275, 60%, 80%)
CMYKcmyk(25%, 59.8%, 0%, 20%)
CIE-LABlab(48.47, 51.00, -51.90)
CIE-LCHlch(48.47, 72.77, 314.50°)
OKLaboklab(57.76% 0.1163 -0.1463)
OKLCHoklch(57.76% 0.187 308.5)
XYZxyz(27.0511, 17.1669, 59.0035)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9952CC #85CC52
analogous
#5C52CC #9952CC #CC52C2
triadic
#9952CC #CC9952 #52CC99
tetradic
#9952CC #CC5C52 #85CC52 #52C2CC
square
#9952CC #CC5C52 #85CC52 #52C2CC
split-complementary
#9952CC #C2CC52 #52CC5C
monochromatic
#59257E #7A33AE #9952CC #B581DA #D1B1E8

Accessibility & contrast

On white

4.74
#9952CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9952CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9952CC
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9952CC#FFFFFF#000000##FFFFFF
##9952CC1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F70D0
Deuteranopia (green-blind)
#4074C9
Tritanopia (blue-blind)
#926987
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9952cc;
/* rgb */ color: rgb(153, 82, 204);
/* oklch */ color: oklch(57.8% 0.187 308.5);
Tailwind
colors: {
  custom: {
    50: '#ba86dc',
    500: '#9952cc',
    950: '#000000',
  },
}
SCSS
$custom: #9952cc;
$custom-light: #ba86dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9952cc",
  "rgb": {
    "r": 153,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 274.918,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57761,
    "c": 0.1869,
    "h": 308.5
  },
  "luminance": 0.17167
}

Semantic roles & 50–950 ramp

primary
#9952CC
secondary
#B9D6A4
accent
#DE4A88
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9952CC

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

Preview Lab → · Contrast checker → · Palette generator →

#9952CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva