#9F52CB#9F52CB

#9F52CB is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.4% C 0.188 H 311.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#9F52CB
RGBrgb(159, 82, 203)
HSLhsl(278, 54%, 56%)
HSVhsv(278, 60%, 80%)
CMYKcmyk(21.7%, 59.6%, 0%, 20.4%)
CIE-LABlab(49.15, 52.23, -50.19)
CIE-LCHlch(49.15, 72.44, 316.14°)
OKLaboklab(58.4% 0.1239 -0.1411)
OKLCHoklch(58.4% 0.188 311.3)
XYZxyz(28.0929, 17.7179, 58.4283)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52CB #7ECB52
analogous
#6252CB #9F52CB #CB52BA
triadic
#9F52CB #CB9F52 #52CB9F
tetradic
#9F52CB #CB6252 #7ECB52 #52BACB
square
#9F52CB #CB6252 #7ECB52 #52BACB
split-complementary
#9F52CB #BACB52 #52CB62
monochromatic
#5D267D #8034AC #9F52CB #B981D9 #D3B0E7

Accessibility & contrast

On white

4.62
#9F52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#9F52CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9F52CB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52CB#FFFFFF#000000##FFFFFF
##9F52CB1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2671CF
Deuteranopia (green-blind)
#4776C8
Tritanopia (blue-blind)
#9A6887
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9f52cb;
/* rgb */ color: rgb(159, 82, 203);
/* oklch */ color: oklch(58.4% 0.188 311.3);
Tailwind
colors: {
  custom: {
    50: '#be86db',
    500: '#9f52cb',
    950: '#000000',
  },
}
SCSS
$custom: #9f52cb;
$custom-light: #be86db;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52cb",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 278.182,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.584,
    "c": 0.1878,
    "h": 311.3
  },
  "luminance": 0.17717
}

Semantic roles & 50–950 ramp

primary
#9F52CB
secondary
#B6D5A3
accent
#DD4B80
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9F52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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