#9A52E1#9A52E1

#9A52E1 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.3% C 0.210 H 303.8°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#9A52E1
RGBrgb(154, 82, 225)
HSLhsl(270, 70%, 60%)
HSVhsv(270, 64%, 88%)
CMYKcmyk(31.6%, 63.6%, 0%, 11.8%)
CIE-LABlab(49.91, 56.09, -61.56)
CIE-LCHlch(49.91, 83.28, 312.34°)
OKLaboklab(59.25% 0.1168 -0.1746)
OKLCHoklch(59.25% 0.21 303.8)
XYZxyz(29.9312, 18.3409, 73.1829)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A52E1 #99E152
analogous
#5352E1 #9A52E1 #E152E0
triadic
#9A52E1 #E19A52 #52E19A
tetradic
#9A52E1 #E15352 #99E152 #52E0E1
square
#9A52E1 #E15352 #99E152 #52E0E1
split-complementary
#9A52E1 #E0E152 #52E153
monochromatic
#5D1B9D #7C24D1 #9A52E1 #B886EA #D7BAF3

Accessibility & contrast

On white

4.50
#9A52E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#9A52E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A52E1
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A52E1#FFFFFF#000000##000000
##9A52E11.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E5
Deuteranopia (green-blind)
#2677DE
Tritanopia (blue-blind)
#8D7192
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9a52e1;
/* rgb */ color: rgb(154, 82, 225);
/* oklch */ color: oklch(59.3% 0.210 303.8);
Tailwind
colors: {
  custom: {
    50: '#bc87eb',
    500: '#9a52e1',
    950: '#000000',
  },
}
SCSS
$custom: #9a52e1;
$custom-light: #bc87eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a52e1",
  "rgb": {
    "r": 154,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 270.21,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59251,
    "c": 0.21004,
    "h": 303.8
  },
  "luminance": 0.18341
}

Semantic roles & 50–950 ramp

primary
#9A52E1
secondary
#C7E3AC
accent
#D21372
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9A52E1

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

Preview Lab → · Contrast checker → · Palette generator →

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