#9D51DC#9D51DC

#9D51DC is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.1% C 0.207 H 306.2°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#9D51DC
RGBrgb(157, 81, 220)
HSLhsl(273, 67%, 59%)
HSVhsv(273, 63%, 86%)
CMYKcmyk(28.6%, 63.2%, 0%, 13.7%)
CIE-LABlab(49.76, 56.07, -58.94)
CIE-LCHlch(49.76, 81.35, 313.57°)
OKLaboklab(59.12% 0.1221 -0.1668)
OKLCHoklch(59.12% 0.207 306.2)
XYZxyz(29.7626, 18.2205, 69.6453)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D51DC #90DC51
analogous
#5851DC #9D51DC #DC51D5
triadic
#9D51DC #DC9D51 #51DC9D
tetradic
#9D51DC #DC5851 #90DC51 #51D5DC
square
#9D51DC #DC5851 #90DC51 #51D5DC
split-complementary
#9D51DC #D5DC51 #51DC58
monochromatic
#5F1E95 #7F28C8 #9D51DC #BA84E6 #D6B7F0

Accessibility & contrast

On white

4.52
#9D51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#9D51DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D51DC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D51DC#FFFFFF#000000##000000
##9D51DC1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E0
Deuteranopia (green-blind)
#3277D9
Tritanopia (blue-blind)
#926E8F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9d51dc;
/* rgb */ color: rgb(157, 81, 220);
/* oklch */ color: oklch(59.1% 0.207 306.2);
Tailwind
colors: {
  custom: {
    50: '#be86e8',
    500: '#9d51dc',
    950: '#000000',
  },
}
SCSS
$custom: #9d51dc;
$custom-light: #be86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d51dc",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 272.806,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59122,
    "c": 0.20672,
    "h": 306.2
  },
  "luminance": 0.1822
}

Semantic roles & 50–950 ramp

primary
#9D51DC
secondary
#C2E0A9
accent
#E93E8C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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