#9F52EC#9F52EC

#9F52EC is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.6% C 0.223 H 303.3°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9F52EC
RGBrgb(159, 82, 236)
HSLhsl(270, 80%, 62%)
HSVhsv(270, 65%, 93%)
CMYKcmyk(32.6%, 65.3%, 0%, 7.5%)
CIE-LABlab(51.22, 59.71, -65.61)
CIE-LCHlch(51.22, 88.71, 312.31°)
OKLaboklab(60.56% 0.1223 -0.1863)
OKLCHoklch(60.56% 0.223 303.3)
XYZxyz(32.4522, 19.4617, 81.3874)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52EC #9FEC52
analogous
#5252EC #9F52EC #EC52EC
triadic
#9F52EC #EC9F52 #52EC9F
tetradic
#9F52EC #EC5252 #9FEC52 #52ECEC
square
#9F52EC #EC5252 #9FEC52 #52ECEC
split-complementary
#9F52EC #ECEC52 #52EC52
monochromatic
#6213B0 #801BE6 #9F52EC #BE89F2 #DCC0F8

Accessibility & contrast

On white

4.29
#9F52EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#9F52EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F52EC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52EC#FFFFFF#000000##000000
##9F52EC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#177AE9
Tritanopia (blue-blind)
#907498
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f52ec;
/* rgb */ color: rgb(159, 82, 236);
/* oklch */ color: oklch(60.6% 0.223 303.3);
Tailwind
colors: {
  custom: {
    50: '#c087f3',
    500: '#9f52ec',
    950: '#000000',
  },
}
SCSS
$custom: #9f52ec;
$custom-light: #c087f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52ec",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 270,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.6056,
    "c": 0.2229,
    "h": 303.3
  },
  "luminance": 0.19462
}

Semantic roles & 50–950 ramp

primary
#9F52EC
secondary
#CDE9B1
accent
#DD0973
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F52EC

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

Preview Lab → · Contrast checker → · Palette generator →

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