#9F52B2#9F52B2

#9F52B2 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.0% C 0.162 H 319.4°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9F52B2
RGBrgb(159, 82, 178)
HSLhsl(288, 38%, 51%)
HSVhsv(288, 54%, 70%)
CMYKcmyk(10.7%, 53.9%, 0%, 30.2%)
CIE-LABlab(47.78, 46.94, -37.88)
CIE-LCHlch(47.78, 60.32, 321.10°)
OKLaboklab(56.95% 0.1226 -0.1052)
OKLCHoklch(56.95% 0.162 319.4)
XYZxyz(25.3502, 16.6209, 43.9837)
Luminance0.1662 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52B2 #65B252
analogous
#6F52B2 #9F52B2 #B25295
triadic
#9F52B2 #B29F52 #52B29F
tetradic
#9F52B2 #B26F52 #65B252 #5295B2
square
#9F52B2 #B26F52 #65B252 #5295B2
split-complementary
#9F52B2 #95B252 #52B26F
monochromatic
#552A5F #7A3D8A #9F52B2 #B77CC5 #CEA7D8

Accessibility & contrast

On white

4.86
#9F52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#9F52B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F52B2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52B2#FFFFFF#000000##FFFFFF
##9F52B21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#A0607A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9f52b2;
/* rgb */ color: rgb(159, 82, 178);
/* oklch */ color: oklch(57.0% 0.162 319.4);
Tailwind
colors: {
  custom: {
    50: '#be86c9',
    500: '#9f52b2',
    950: '#000000',
  },
}
SCSS
$custom: #9f52b2;
$custom-light: #be86c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52b2",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 288.125,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5695,
    "c": 0.16159,
    "h": 319.4
  },
  "luminance": 0.1662
}

Semantic roles & 50–950 ramp

primary
#9F52B2
secondary
#A3C59B
accent
#CE5971
background
#FBF8FC
surface
#F7F0F8
border
#D0CBD1
text
#120B13
muted
#817C82

Preview Lab

Preview with #9F52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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