#9A52E4#9A52E4

#9A52E4 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.5% C 0.213 H 303.1°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9A52E4
RGBrgb(154, 82, 228)
HSLhsl(270, 73%, 61%)
HSVhsv(270, 64%, 89%)
CMYKcmyk(32.5%, 64%, 0%, 10.6%)
CIE-LABlab(50.10, 56.80, -62.94)
CIE-LCHlch(50.10, 84.78, 312.06°)
OKLaboklab(59.46% 0.1165 -0.1786)
OKLCHoklch(59.46% 0.213 303.1)
XYZxyz(30.3441, 18.5061, 75.3572)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A52E4 #9CE452
analogous
#5253E4 #9A52E4 #E352E4
triadic
#9A52E4 #E49A52 #52E49A
tetradic
#9A52E4 #E45253 #9CE452 #52E4E3
square
#9A52E4 #E45253 #9CE452 #52E4E3
split-complementary
#9A52E4 #E4E352 #53E452
monochromatic
#5D19A2 #7B22D7 #9A52E4 #B987EC #D8BCF5

Accessibility & contrast

On white

4.47
#9A52E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#9A52E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A52E4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A52E4#FFFFFF#000000##000000
##9A52E41.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#2077E1
Tritanopia (blue-blind)
#8C7294
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9a52e4;
/* rgb */ color: rgb(154, 82, 228);
/* oklch */ color: oklch(59.5% 0.213 303.1);
Tailwind
colors: {
  custom: {
    50: '#bd87ed',
    500: '#9a52e4',
    950: '#000000',
  },
}
SCSS
$custom: #9a52e4;
$custom-light: #bd87ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9a52e4",
  "rgb": {
    "r": 154,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 269.589,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59456,
    "c": 0.2133,
    "h": 303.1
  },
  "luminance": 0.18506
}

Semantic roles & 50–950 ramp

primary
#9A52E4
secondary
#C9E5AD
accent
#D51074
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9A52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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