#9F52CD#9F52CD

#9F52CD is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.5% C 0.190 H 310.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9F52CD
RGBrgb(159, 82, 205)
HSLhsl(278, 55%, 56%)
HSVhsv(278, 60%, 80%)
CMYKcmyk(22.4%, 60%, 0%, 19.6%)
CIE-LABlab(49.27, 52.67, -51.15)
CIE-LCHlch(49.27, 73.42, 315.84°)
OKLaboklab(58.52% 0.1239 -0.1439)
OKLCHoklch(58.52% 0.19 310.7)
XYZxyz(28.3328, 17.8139, 59.6917)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52CD #80CD52
analogous
#6252CD #9F52CD #CD52BE
triadic
#9F52CD #CD9F52 #52CD9F
tetradic
#9F52CD #CD6252 #80CD52 #52BECD
square
#9F52CD #CD6252 #80CD52 #52BECD
split-complementary
#9F52CD #BECD52 #52CD62
monochromatic
#5E2580 #8133AF #9F52CD #B981DB #D4B1E8

Accessibility & contrast

On white

4.60
#9F52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#9F52CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9F52CD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52CD#FFFFFF#000000##FFFFFF
##9F52CD1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2371D1
Deuteranopia (green-blind)
#4676CA
Tritanopia (blue-blind)
#996988
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9f52cd;
/* rgb */ color: rgb(159, 82, 205);
/* oklch */ color: oklch(58.5% 0.190 310.7);
Tailwind
colors: {
  custom: {
    50: '#bf86dd',
    500: '#9f52cd',
    950: '#000000',
  },
}
SCSS
$custom: #9f52cd;
$custom-light: #bf86dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52cd",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 277.561,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58523,
    "c": 0.18992,
    "h": 310.7
  },
  "luminance": 0.17813
}

Semantic roles & 50–950 ramp

primary
#9F52CD
secondary
#B7D7A4
accent
#DE4981
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9F52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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