#9D52DF#9D52DF

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

Color values

HEX#9D52DF
RGBrgb(157, 82, 223)
HSLhsl(272, 69%, 60%)
HSVhsv(272, 63%, 87%)
CMYKcmyk(29.6%, 63.2%, 0%, 12.5%)
CIE-LABlab(50.13, 56.27, -60.04)
CIE-LCHlch(50.13, 82.29, 313.14°)
OKLaboklab(59.45% 0.1208 -0.17)
OKLCHoklch(59.45% 0.209 305.4)
XYZxyz(30.2383, 18.5306, 71.7815)
Luminance0.1853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D52DF #94DF52
analogous
#5752DF #9D52DF #DF52DA
triadic
#9D52DF #DF9D52 #52DF9D
tetradic
#9D52DF #DF5752 #94DF52 #52DADF
square
#9D52DF #DF5752 #94DF52 #52DADF
split-complementary
#9D52DF #DADF52 #52DF57
monochromatic
#5F1D9A #7F26CE #9D52DF #BA86E9 #D8B9F2

Accessibility & contrast

On white

4.46
#9D52DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#9D52DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D52DF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D52DF#FFFFFF#000000##000000
##9D52DF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E3
Deuteranopia (green-blind)
#2F78DC
Tritanopia (blue-blind)
#917091
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9d52df;
/* rgb */ color: rgb(157, 82, 223);
/* oklch */ color: oklch(59.5% 0.209 305.4);
Tailwind
colors: {
  custom: {
    50: '#be87ea',
    500: '#9d52df',
    950: '#000000',
  },
}
SCSS
$custom: #9d52df;
$custom-light: #be87ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9d52df",
  "rgb": {
    "r": 157,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 271.915,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59451,
    "c": 0.20858,
    "h": 305.4
  },
  "luminance": 0.1853
}

Semantic roles & 50–950 ramp

primary
#9D52DF
secondary
#C5E2AB
accent
#EC3C8E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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