#9F52BD#9F52BD

#9F52BD is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.6% C 0.173 H 315.5°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9F52BD
RGBrgb(159, 82, 189)
HSLhsl(283, 45%, 53%)
HSVhsv(283, 57%, 74%)
CMYKcmyk(15.9%, 56.6%, 0%, 25.9%)
CIE-LABlab(48.36, 49.22, -43.37)
CIE-LCHlch(48.36, 65.60, 318.62°)
OKLaboklab(57.57% 0.1235 -0.1212)
OKLCHoklch(57.57% 0.173 315.5)
XYZxyz(26.4992, 17.0805, 50.0352)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52BD #70BD52
analogous
#6952BD #9F52BD #BD52A5
triadic
#9F52BD #BD9F52 #52BD9F
tetradic
#9F52BD #BD6952 #70BD52 #52A5BD
square
#9F52BD #BD6952 #70BD52 #52A5BD
split-complementary
#9F52BD #A5BD52 #52BD69
monochromatic
#59296C #7E3A98 #9F52BD #B87ECE #D0ABDF

Accessibility & contrast

On white

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

On black

4.42
#9F52BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9F52BD#FFFFFF#000000##FFFFFF
##9F52BD1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366EC0
Deuteranopia (green-blind)
#5275BA
Tritanopia (blue-blind)
#9D6480
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f52bd;
/* rgb */ color: rgb(159, 82, 189);
/* oklch */ color: oklch(57.6% 0.173 315.5);
Tailwind
colors: {
  custom: {
    50: '#be86d1',
    500: '#9f52bd',
    950: '#000000',
  },
}
SCSS
$custom: #9f52bd;
$custom-light: #be86d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52bd",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 189
  },
  "hsl": {
    "h": 283.178,
    "s": 44.77,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57567,
    "c": 0.17302,
    "h": 315.5
  },
  "luminance": 0.1708
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F52BD

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

Preview Lab → · Contrast checker → · Palette generator →

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