#9752DC#9752DC

#9752DC is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.6% C 0.204 H 303.7°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#9752DC
RGBrgb(151, 82, 220)
HSLhsl(270, 66%, 59%)
HSVhsv(270, 63%, 86%)
CMYKcmyk(31.4%, 62.7%, 0%, 13.7%)
CIE-LABlab(49.23, 54.26, -59.83)
CIE-LCHlch(49.23, 80.77, 312.20°)
OKLaboklab(58.58% 0.1132 -0.1696)
OKLCHoklch(58.58% 0.204 303.7)
XYZxyz(28.6951, 17.7813, 69.6167)
Luminance0.1778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9752DC #97DC52
analogous
#5252DC #9752DC #DC52DC
triadic
#9752DC #DC9752 #52DC97
tetradic
#9752DC #DC5252 #97DC52 #52DCDC
square
#9752DC #DC5252 #97DC52 #52DCDC
split-complementary
#9752DC #DCDC52 #52DC52
monochromatic
#5A1E95 #7829C8 #9752DC #B685E6 #D4B8F1

Accessibility & contrast

On white

4.61
#9752DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#9752DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9752DC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9752DC#FFFFFF#000000##FFFFFF
##9752DC1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#2A75D9
Tritanopia (blue-blind)
#8A6F90
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9752dc;
/* rgb */ color: rgb(151, 82, 220);
/* oklch */ color: oklch(58.6% 0.204 303.7);
Tailwind
colors: {
  custom: {
    50: '#ba86e8',
    500: '#9752dc',
    950: '#000000',
  },
}
SCSS
$custom: #9752dc;
$custom-light: #ba86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9752dc",
  "rgb": {
    "r": 151,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 270,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5858,
    "c": 0.20393,
    "h": 303.7
  },
  "luminance": 0.17781
}

Semantic roles & 50–950 ramp

primary
#9752DC
secondary
#C5E0AA
accent
#E93F94
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9752DC

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

Preview Lab → · Contrast checker → · Palette generator →

#9752DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva