#9D52C8#9D52C8

#9D52C8 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 58.0% C 0.184 H 311.3°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#9D52C8
RGBrgb(157, 82, 200)
HSLhsl(278, 52%, 55%)
HSVhsv(278, 59%, 78%)
CMYKcmyk(21.5%, 59%, 0%, 21.6%)
CIE-LABlab(48.73, 51.08, -49.16)
CIE-LCHlch(48.73, 70.90, 316.10°)
OKLaboklab(57.98% 0.1214 -0.1381)
OKLCHoklch(57.98% 0.184 311.3)
XYZxyz(27.3453, 17.3734, 56.5453)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D52C8 #7DC852
analogous
#6252C8 #9D52C8 #C852B8
triadic
#9D52C8 #C89D52 #52C89D
tetradic
#9D52C8 #C86252 #7DC852 #52B8C8
square
#9D52C8 #C86252 #7DC852 #52B8C8
split-complementary
#9D52C8 #B8C852 #52C862
monochromatic
#5B2779 #7E35A8 #9D52C8 #B780D7 #D2AFE6

Accessibility & contrast

On white

4.69
#9D52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#9D52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D52C8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D52C8#FFFFFF#000000##FFFFFF
##9D52C81.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2970CC
Deuteranopia (green-blind)
#4875C5
Tritanopia (blue-blind)
#986885
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9d52c8;
/* rgb */ color: rgb(157, 82, 200);
/* oklch */ color: oklch(58.0% 0.184 311.3);
Tailwind
colors: {
  custom: {
    50: '#bd86d9',
    500: '#9d52c8',
    950: '#000000',
  },
}
SCSS
$custom: #9d52c8;
$custom-light: #bd86d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d52c8",
  "rgb": {
    "r": 157,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 278.136,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5798,
    "c": 0.1839,
    "h": 311.3
  },
  "luminance": 0.17373
}

Semantic roles & 50–950 ramp

primary
#9D52C8
secondary
#B4D4A2
accent
#DB4D81
background
#FBF8FD
surface
#F7F0FA
border
#D0CBD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #9D52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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