#9D52EC#9D52EC

#9D52EC is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.3% C 0.223 H 302.5°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9D52EC
RGBrgb(157, 82, 236)
HSLhsl(269, 80%, 62%)
HSVhsv(269, 65%, 93%)
CMYKcmyk(33.5%, 65.3%, 0%, 7.5%)
CIE-LABlab(50.99, 59.30, -66.00)
CIE-LCHlch(50.99, 88.73, 311.94°)
OKLaboklab(60.34% 0.1197 -0.1875)
OKLCHoklch(60.34% 0.223 302.5)
XYZxyz(32.0587, 19.2588, 81.3690)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D52EC #A1EC52
analogous
#5254EC #9D52EC #EA52EC
triadic
#9D52EC #EC9D52 #52EC9D
tetradic
#9D52EC #EC5254 #A1EC52 #52ECEA
square
#9D52EC #EC5254 #A1EC52 #52ECEA
split-complementary
#9D52EC #ECEA52 #54EC52
monochromatic
#6013B0 #7E1BE6 #9D52EC #BC89F2 #DBC0F8

Accessibility & contrast

On white

4.33
#9D52EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#9D52EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D52EC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D52EC#FFFFFF#000000##000000
##9D52EC1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#1079E9
Tritanopia (blue-blind)
#8D7498
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9d52ec;
/* rgb */ color: rgb(157, 82, 236);
/* oklch */ color: oklch(60.3% 0.223 302.5);
Tailwind
colors: {
  custom: {
    50: '#bf87f3',
    500: '#9d52ec',
    950: '#000000',
  },
}
SCSS
$custom: #9d52ec;
$custom-light: #bf87f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d52ec",
  "rgb": {
    "r": 157,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 269.221,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.60339,
    "c": 0.2225,
    "h": 302.5
  },
  "luminance": 0.19259
}

Semantic roles & 50–950 ramp

primary
#9D52EC
secondary
#CEE9B1
accent
#DD0975
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D52EC

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

Preview Lab → · Contrast checker → · Palette generator →

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