#9D52CB#9D52CB

#9D52CB is a mid, vivid violet. Relative luminance 0.175; OKLCH L 58.2% C 0.187 H 310.5°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#9D52CB
RGBrgb(157, 82, 203)
HSLhsl(277, 54%, 56%)
HSVhsv(277, 60%, 80%)
CMYKcmyk(22.7%, 59.6%, 0%, 20.4%)
CIE-LABlab(48.90, 51.75, -50.61)
CIE-LCHlch(48.90, 72.38, 315.64°)
OKLaboklab(58.16% 0.1214 -0.1424)
OKLCHoklch(58.16% 0.187 310.5)
XYZxyz(27.6994, 17.5150, 58.4099)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D52CB #80CB52
analogous
#6052CB #9D52CB #CB52BC
triadic
#9D52CB #CB9D52 #52CB9D
tetradic
#9D52CB #CB6052 #80CB52 #52BCCB
square
#9D52CB #CB6052 #80CB52 #52BCCB
split-complementary
#9D52CB #BCCB52 #52CB60
monochromatic
#5C267D #7E34AC #9D52CB #B881D9 #D2B0E7

Accessibility & contrast

On white

4.66
#9D52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#9D52CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9D52CB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D52CB#FFFFFF#000000##FFFFFF
##9D52CB1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2471CF
Deuteranopia (green-blind)
#4575C8
Tritanopia (blue-blind)
#976987
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9d52cb;
/* rgb */ color: rgb(157, 82, 203);
/* oklch */ color: oklch(58.2% 0.187 310.5);
Tailwind
colors: {
  custom: {
    50: '#bd86db',
    500: '#9d52cb',
    950: '#000000',
  },
}
SCSS
$custom: #9d52cb;
$custom-light: #bd86db;
$custom-dark: #000000;
JSON
{
  "hex": "#9d52cb",
  "rgb": {
    "r": 157,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 277.19,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58164,
    "c": 0.18711,
    "h": 310.5
  },
  "luminance": 0.17514
}

Semantic roles & 50–950 ramp

primary
#9D52CB
secondary
#B6D5A3
accent
#DD4B82
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9D52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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