#9F52E4#9F52E4

#9F52E4 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.0% C 0.214 H 305.0°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9F52E4
RGBrgb(159, 82, 228)
HSLhsl(272, 73%, 61%)
HSVhsv(272, 64%, 89%)
CMYKcmyk(30.3%, 64%, 0%, 10.6%)
CIE-LABlab(50.70, 57.86, -61.95)
CIE-LCHlch(50.70, 84.77, 313.04°)
OKLaboklab(60.01% 0.123 -0.1756)
OKLCHoklch(60.01% 0.214 305)
XYZxyz(31.3159, 19.0071, 75.4027)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F52E4 #97E452
analogous
#5652E4 #9F52E4 #E452E0
triadic
#9F52E4 #E49F52 #52E49F
tetradic
#9F52E4 #E45652 #97E452 #52E0E4
square
#9F52E4 #E45652 #97E452 #52E0E4
split-complementary
#9F52E4 #E0E452 #52E456
monochromatic
#6219A2 #8122D7 #9F52E4 #BC87EC #DABCF5

Accessibility & contrast

On white

4.37
#9F52E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#9F52E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F52E4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F52E4#FFFFFF#000000##000000
##9F52E41.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#2A79E1
Tritanopia (blue-blind)
#937194
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9f52e4;
/* rgb */ color: rgb(159, 82, 228);
/* oklch */ color: oklch(60.0% 0.214 305.0);
Tailwind
colors: {
  custom: {
    50: '#c087ed',
    500: '#9f52e4',
    950: '#000000',
  },
}
SCSS
$custom: #9f52e4;
$custom-light: #c087ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9f52e4",
  "rgb": {
    "r": 159,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 271.644,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60012,
    "c": 0.2144,
    "h": 305
  },
  "luminance": 0.19007
}

Semantic roles & 50–950 ramp

primary
#9F52E4
secondary
#C7E5AD
accent
#D5106D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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