#9F52CA#9F52CA

#9F52CA is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.3% C 0.187 H 311.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#9F52CA
RGBrgb(159, 82, 202)
HSLhsl(279, 53%, 56%)
HSVhsv(279, 59%, 79%)
CMYKcmyk(21.3%, 59.4%, 0%, 20.8%)
CIE-LABlab(49.09, 52.01, -49.71)
CIE-LCHlch(49.09, 71.95, 316.30°)
OKLaboklab(58.34% 0.1239 -0.1397)
OKLCHoklch(58.34% 0.187 311.6)
XYZxyz(27.9741, 17.6704, 57.8028)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52CA #7DCA52
analogous
#6352CA #9F52CA #CA52B9
triadic
#9F52CA #CA9F52 #52CA9F
tetradic
#9F52CA #CA6352 #7DCA52 #52B9CA
square
#9F52CA #CA6352 #7DCA52 #52B9CA
split-complementary
#9F52CA #B9CA52 #52CA63
monochromatic
#5D267C #8034AB #9F52CA #B981D8 #D3B0E7

Accessibility & contrast

On white

4.63
#9F52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#9F52CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9F52CA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52CA#FFFFFF#000000##FFFFFF
##9F52CA1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2771CE
Deuteranopia (green-blind)
#4876C7
Tritanopia (blue-blind)
#9A6886
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9f52ca;
/* rgb */ color: rgb(159, 82, 202);
/* oklch */ color: oklch(58.3% 0.187 311.6);
Tailwind
colors: {
  custom: {
    50: '#be86db',
    500: '#9f52ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f52ca;
$custom-light: #be86db;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52ca",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 278.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.58339,
    "c": 0.18673,
    "h": 311.6
  },
  "luminance": 0.1767
}

Semantic roles & 50–950 ramp

primary
#9F52CA
secondary
#B5D5A3
accent
#DD4B7F
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9F52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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