#9F52E8#9F52E8

#9F52E8 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.3% C 0.219 H 304.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9F52E8
RGBrgb(159, 82, 232)
HSLhsl(271, 77%, 62%)
HSVhsv(271, 65%, 91%)
CMYKcmyk(31.5%, 64.7%, 0%, 9%)
CIE-LABlab(50.96, 58.78, -63.79)
CIE-LCHlch(50.96, 86.74, 312.66°)
OKLaboklab(60.28% 0.1227 -0.181)
OKLCHoklch(60.28% 0.219 304.1)
XYZxyz(31.8776, 19.2318, 78.3610)
Luminance0.1923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52E8 #9BE852
analogous
#5452E8 #9F52E8 #E852E6
triadic
#9F52E8 #E89F52 #52E89F
tetradic
#9F52E8 #E85452 #9BE852 #52E6E8
square
#9F52E8 #E85452 #9BE852 #52E6E8
split-complementary
#9F52E8 #E6E852 #52E854
monochromatic
#6216A9 #811EDF #9F52E8 #BD88EF #DBBEF6

Accessibility & contrast

On white

4.33
#9F52E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#9F52E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F52E8
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52E8#FFFFFF#000000##000000
##9F52E81.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077ED
Deuteranopia (green-blind)
#2279E5
Tritanopia (blue-blind)
#917396
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9f52e8;
/* rgb */ color: rgb(159, 82, 232);
/* oklch */ color: oklch(60.3% 0.219 304.1);
Tailwind
colors: {
  custom: {
    50: '#c087f0',
    500: '#9f52e8',
    950: '#000000',
  },
}
SCSS
$custom: #9f52e8;
$custom-light: #c087f0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52e8",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 270.8,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60284,
    "c": 0.21866,
    "h": 304.1
  },
  "luminance": 0.19232
}

Semantic roles & 50–950 ramp

primary
#9F52E8
secondary
#CAE7AF
accent
#D90D70
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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