#9F52EA#9F52EA

#9F52EA is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.4% C 0.221 H 303.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#9F52EA
RGBrgb(159, 82, 234)
HSLhsl(270, 78%, 62%)
HSVhsv(270, 65%, 92%)
CMYKcmyk(32.1%, 65%, 0%, 8.2%)
CIE-LABlab(51.09, 59.25, -64.70)
CIE-LCHlch(51.09, 87.73, 312.48°)
OKLaboklab(60.42% 0.1225 -0.1837)
OKLCHoklch(60.42% 0.221 303.7)
XYZxyz(32.1633, 19.3461, 79.8657)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52EA #9DEA52
analogous
#5352EA #9F52EA #EA52E9
triadic
#9F52EA #EA9F52 #52EA9F
tetradic
#9F52EA #EA5352 #9DEA52 #52E9EA
square
#9F52EA #EA5352 #9DEA52 #52E9EA
split-complementary
#9F52EA #E9EA52 #52EA53
monochromatic
#6215AD #811CE3 #9F52EA #BD89F1 #DCBFF7

Accessibility & contrast

On white

4.31
#9F52EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#9F52EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F52EA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52EA#FFFFFF#000000##000000
##9F52EA1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EF
Deuteranopia (green-blind)
#1D79E7
Tritanopia (blue-blind)
#917397
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f52ea;
/* rgb */ color: rgb(159, 82, 234);
/* oklch */ color: oklch(60.4% 0.221 303.7);
Tailwind
colors: {
  custom: {
    50: '#c087f2',
    500: '#9f52ea',
    950: '#000000',
  },
}
SCSS
$custom: #9f52ea;
$custom-light: #c087f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52ea",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 270.395,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60422,
    "c": 0.22078,
    "h": 303.7
  },
  "luminance": 0.19346
}

Semantic roles & 50–950 ramp

primary
#9F52EA
secondary
#CCE8B0
accent
#DB0B71
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F52EA

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

Preview Lab → · Contrast checker → · Palette generator →

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