#9D52EB#9D52EB

#9D52EB is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.3% C 0.221 H 302.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9D52EB
RGBrgb(157, 82, 235)
HSLhsl(269, 79%, 62%)
HSVhsv(269, 65%, 92%)
CMYKcmyk(33.2%, 65.1%, 0%, 7.8%)
CIE-LABlab(50.92, 59.07, -65.54)
CIE-LCHlch(50.92, 88.23, 312.03°)
OKLaboklab(60.27% 0.1198 -0.1862)
OKLCHoklch(60.27% 0.221 302.8)
XYZxyz(31.9138, 19.2008, 80.6060)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D52EB #A0EB52
analogous
#5253EB #9D52EB #EA52EB
triadic
#9D52EB #EB9D52 #52EB9D
tetradic
#9D52EB #EB5253 #A0EB52 #52EBEA
square
#9D52EB #EB5253 #A0EB52 #52EBEA
split-complementary
#9D52EB #EBEA52 #53EB52
monochromatic
#6014AE #7E1BE5 #9D52EB #BC89F1 #DBC0F8

Accessibility & contrast

On white

4.34
#9D52EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#9D52EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D52EB
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D52EB#FFFFFF#000000##000000
##9D52EB1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#1479E8
Tritanopia (blue-blind)
#8D7498
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9d52eb;
/* rgb */ color: rgb(157, 82, 235);
/* oklch */ color: oklch(60.3% 0.221 302.8);
Tailwind
colors: {
  custom: {
    50: '#bf87f2',
    500: '#9d52eb',
    950: '#000000',
  },
}
SCSS
$custom: #9d52eb;
$custom-light: #bf87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d52eb",
  "rgb": {
    "r": 157,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 269.412,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.6027,
    "c": 0.22143,
    "h": 302.8
  },
  "luminance": 0.19201
}

Semantic roles & 50–950 ramp

primary
#9D52EB
secondary
#CDE8B0
accent
#DC0A75
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D52EB

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

Preview Lab → · Contrast checker → · Palette generator →

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