#9D52B2#9D52B2

#9D52B2 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 56.7% C 0.161 H 318.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9D52B2
RGBrgb(157, 82, 178)
HSLhsl(287, 38%, 51%)
HSVhsv(287, 54%, 70%)
CMYKcmyk(11.8%, 53.9%, 0%, 30.2%)
CIE-LABlab(47.52, 46.39, -38.31)
CIE-LCHlch(47.52, 60.16, 320.45°)
OKLaboklab(56.7% 0.1202 -0.1065)
OKLCHoklch(56.7% 0.161 318.5)
XYZxyz(24.9567, 16.4180, 43.9652)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D52B2 #67B252
analogous
#6D52B2 #9D52B2 #B25297
triadic
#9D52B2 #B29D52 #52B29D
tetradic
#9D52B2 #B26D52 #67B252 #5297B2
square
#9D52B2 #B26D52 #67B252 #5297B2
split-complementary
#9D52B2 #97B252 #52B26D
monochromatic
#542A5F #793D8A #9D52B2 #B57CC5 #CDA7D8

Accessibility & contrast

On white

4.90
#9D52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9D52B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D52B2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D52B2#FFFFFF#000000##FFFFFF
##9D52B21.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#9D607A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9d52b2;
/* rgb */ color: rgb(157, 82, 178);
/* oklch */ color: oklch(56.7% 0.161 318.5);
Tailwind
colors: {
  custom: {
    50: '#bc86c9',
    500: '#9d52b2',
    950: '#000000',
  },
}
SCSS
$custom: #9d52b2;
$custom-light: #bc86c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d52b2",
  "rgb": {
    "r": 157,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 286.875,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56703,
    "c": 0.1606,
    "h": 318.5
  },
  "luminance": 0.16417
}

Semantic roles & 50–950 ramp

primary
#9D52B2
secondary
#A4C59B
accent
#CE5973
background
#FBF8FC
surface
#F7F0F8
border
#D0CBD1
text
#120B13
muted
#817C82

Preview Lab

Preview with #9D52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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