#9F52BC#9F52BC

#9F52BC is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.5% C 0.172 H 315.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9F52BC
RGBrgb(159, 82, 188)
HSLhsl(284, 44%, 53%)
HSVhsv(284, 56%, 74%)
CMYKcmyk(15.4%, 56.4%, 0%, 26.3%)
CIE-LABlab(48.31, 49.01, -42.87)
CIE-LCHlch(48.31, 65.12, 318.82°)
OKLaboklab(57.51% 0.1234 -0.1197)
OKLCHoklch(57.51% 0.172 315.9)
XYZxyz(26.3911, 17.0372, 49.4655)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52BC #6FBC52
analogous
#6A52BC #9F52BC #BC52A4
triadic
#9F52BC #BC9F52 #52BC9F
tetradic
#9F52BC #BC6A52 #6FBC52 #52A4BC
square
#9F52BC #BC6A52 #6FBC52 #52A4BC
split-complementary
#9F52BC #A4BC52 #52BC6A
monochromatic
#59296A #7D3A97 #9F52BC #B77ECD #D0AADE

Accessibility & contrast

On white

4.76
#9F52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#9F52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F52BC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52BC#FFFFFF#000000##FFFFFF
##9F52BC1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376EBF
Deuteranopia (green-blind)
#5275B9
Tritanopia (blue-blind)
#9D637F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f52bc;
/* rgb */ color: rgb(159, 82, 188);
/* oklch */ color: oklch(57.5% 0.172 315.9);
Tailwind
colors: {
  custom: {
    50: '#be86d0',
    500: '#9f52bc',
    950: '#000000',
  },
}
SCSS
$custom: #9f52bc;
$custom-light: #be86d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52bc",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 283.585,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5751,
    "c": 0.17197,
    "h": 315.9
  },
  "luminance": 0.17036
}

Semantic roles & 50–950 ramp

primary
#9F52BC
secondary
#ABCC9E
accent
#D45477
background
#FBF8FC
surface
#F7F0F9
border
#D0CBD2
text
#120B14
muted
#817C82

Preview Lab

Preview with #9F52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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