#9F52EB#9F52EB

#9F52EB is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.5% C 0.222 H 303.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9F52EB
RGBrgb(159, 82, 235)
HSLhsl(270, 79%, 62%)
HSVhsv(270, 65%, 92%)
CMYKcmyk(32.3%, 65.1%, 0%, 7.8%)
CIE-LABlab(51.16, 59.48, -65.15)
CIE-LCHlch(51.16, 88.22, 312.39°)
OKLaboklab(60.49% 0.1224 -0.185)
OKLCHoklch(60.49% 0.222 303.5)
XYZxyz(32.3073, 19.4037, 80.6244)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52EB #9EEB52
analogous
#5352EB #9F52EB #EB52EB
triadic
#9F52EB #EB9F52 #52EB9F
tetradic
#9F52EB #EB5352 #9EEB52 #52EBEB
square
#9F52EB #EB5352 #9EEB52 #52EBEB
split-complementary
#9F52EB #EBEB52 #52EB53
monochromatic
#6214AE #811BE5 #9F52EB #BD89F1 #DCC0F8

Accessibility & contrast

On white

4.30
#9F52EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#9F52EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F52EB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52EB#FFFFFF#000000##000000
##9F52EB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#1A7AE8
Tritanopia (blue-blind)
#907498
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f52eb;
/* rgb */ color: rgb(159, 82, 235);
/* oklch */ color: oklch(60.5% 0.222 303.5);
Tailwind
colors: {
  custom: {
    50: '#c087f2',
    500: '#9f52eb',
    950: '#000000',
  },
}
SCSS
$custom: #9f52eb;
$custom-light: #c087f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52eb",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 270.196,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60491,
    "c": 0.22184,
    "h": 303.5
  },
  "luminance": 0.19404
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F52EB

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

Preview Lab → · Contrast checker → · Palette generator →

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