#9F52ED#9F52ED

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

Color values

HEX#9F52ED
RGBrgb(159, 82, 237)
HSLhsl(270, 81%, 63%)
HSVhsv(270, 65%, 93%)
CMYKcmyk(32.9%, 65.4%, 0%, 7.1%)
CIE-LABlab(51.29, 59.95, -66.06)
CIE-LCHlch(51.29, 89.20, 312.22°)
OKLaboklab(60.63% 0.1222 -0.1877)
OKLCHoklch(60.63% 0.224 303.1)
XYZxyz(32.5979, 19.5199, 82.1547)
Luminance0.1952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52ED #A0ED52
analogous
#5253ED #9F52ED #EC52ED
triadic
#9F52ED #ED9F52 #52ED9F
tetradic
#9F52ED #ED5253 #A0ED52 #52EDEC
square
#9F52ED #ED5253 #A0ED52 #52EDEC
split-complementary
#9F52ED #EDEC52 #53ED52
monochromatic
#6213B2 #801BE7 #9F52ED #BE89F3 #DDC1F9

Accessibility & contrast

On white

4.28
#9F52ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#9F52ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F52ED
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52ED#FFFFFF#000000##000000
##9F52ED1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F2
Deuteranopia (green-blind)
#147AEA
Tritanopia (blue-blind)
#907599
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f52ed;
/* rgb */ color: rgb(159, 82, 237);
/* oklch */ color: oklch(60.6% 0.224 303.1);
Tailwind
colors: {
  custom: {
    50: '#c187f4',
    500: '#9f52ed',
    950: '#000000',
  },
}
SCSS
$custom: #9f52ed;
$custom-light: #c187f4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52ed",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 237
  },
  "hsl": {
    "h": 269.806,
    "s": 81.152,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60629,
    "c": 0.22396,
    "h": 303.1
  },
  "luminance": 0.1952
}

Semantic roles & 50–950 ramp

primary
#9F52ED
secondary
#CEEAB1
accent
#DE0873
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F52ED

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

Preview Lab → · Contrast checker → · Palette generator →

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