#9D52E4#9D52E4

#9D52E4 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.8% C 0.214 H 304.3°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9D52E4
RGBrgb(157, 82, 228)
HSLhsl(271, 73%, 61%)
HSVhsv(271, 64%, 89%)
CMYKcmyk(31.1%, 64%, 0%, 10.6%)
CIE-LABlab(50.46, 57.43, -62.35)
CIE-LCHlch(50.46, 84.77, 312.65°)
OKLaboklab(59.79% 0.1204 -0.1768)
OKLCHoklch(59.79% 0.214 304.3)
XYZxyz(30.9224, 18.8042, 75.3843)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D52E4 #99E452
analogous
#5452E4 #9D52E4 #E452E2
triadic
#9D52E4 #E49D52 #52E49D
tetradic
#9D52E4 #E45452 #99E452 #52E2E4
square
#9D52E4 #E45452 #99E452 #52E2E4
split-complementary
#9D52E4 #E2E452 #52E454
monochromatic
#6019A2 #7F22D7 #9D52E4 #BB87EC #D9BCF5

Accessibility & contrast

On white

4.41
#9D52E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#9D52E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D52E4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D52E4#FFFFFF#000000##000000
##9D52E41.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#2678E1
Tritanopia (blue-blind)
#907194
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9d52e4;
/* rgb */ color: rgb(157, 82, 228);
/* oklch */ color: oklch(59.8% 0.214 304.3);
Tailwind
colors: {
  custom: {
    50: '#bf87ed',
    500: '#9d52e4',
    950: '#000000',
  },
}
SCSS
$custom: #9d52e4;
$custom-light: #bf87ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9d52e4",
  "rgb": {
    "r": 157,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 270.822,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59788,
    "c": 0.21394,
    "h": 304.3
  },
  "luminance": 0.18804
}

Semantic roles & 50–950 ramp

primary
#9D52E4
secondary
#C8E5AD
accent
#D51070
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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