#9D52CA#9D52CA

#9D52CA is a mid, vivid violet. Relative luminance 0.175; OKLCH L 58.1% C 0.186 H 310.7°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#9D52CA
RGBrgb(157, 82, 202)
HSLhsl(278, 53%, 56%)
HSVhsv(278, 59%, 79%)
CMYKcmyk(22.3%, 59.4%, 0%, 20.8%)
CIE-LABlab(48.84, 51.52, -50.13)
CIE-LCHlch(48.84, 71.88, 315.79°)
OKLaboklab(58.1% 0.1214 -0.141)
OKLCHoklch(58.1% 0.186 310.7)
XYZxyz(27.5806, 17.4675, 57.7843)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D52CA #7FCA52
analogous
#6152CA #9D52CA #CA52BB
triadic
#9D52CA #CA9D52 #52CA9D
tetradic
#9D52CA #CA6152 #7FCA52 #52BBCA
square
#9D52CA #CA6152 #7FCA52 #52BBCA
split-complementary
#9D52CA #BBCA52 #52CA61
monochromatic
#5C267C #7E34AB #9D52CA #B881D8 #D2B0E7

Accessibility & contrast

On white

4.67
#9D52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#9D52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D52CA
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D52CA#FFFFFF#000000##FFFFFF
##9D52CA1.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2670CE
Deuteranopia (green-blind)
#4675C7
Tritanopia (blue-blind)
#976886
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9d52ca;
/* rgb */ color: rgb(157, 82, 202);
/* oklch */ color: oklch(58.1% 0.186 310.7);
Tailwind
colors: {
  custom: {
    50: '#bd86db',
    500: '#9d52ca',
    950: '#000000',
  },
}
SCSS
$custom: #9d52ca;
$custom-light: #bd86db;
$custom-dark: #000000;
JSON
{
  "hex": "#9d52ca",
  "rgb": {
    "r": 157,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 277.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.58103,
    "c": 0.18604,
    "h": 310.7
  },
  "luminance": 0.17467
}

Semantic roles & 50–950 ramp

primary
#9D52CA
secondary
#B6D5A3
accent
#DD4B82
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9D52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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