#9D51DB#9D51DB

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

Color values

HEX#9D51DB
RGBrgb(157, 81, 219)
HSLhsl(273, 66%, 59%)
HSVhsv(273, 63%, 86%)
CMYKcmyk(28.3%, 63%, 0%, 14.1%)
CIE-LABlab(49.70, 55.84, -58.47)
CIE-LCHlch(49.70, 80.86, 313.68°)
OKLaboklab(59.06% 0.1222 -0.1654)
OKLCHoklch(59.06% 0.206 306.4)
XYZxyz(29.6305, 18.1677, 68.9499)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D51DB #8FDB51
analogous
#5851DB #9D51DB #DB51D4
triadic
#9D51DB #DB9D51 #51DB9D
tetradic
#9D51DB #DB5851 #8FDB51 #51D4DB
square
#9D51DB #DB5851 #8FDB51 #51D4DB
split-complementary
#9D51DB #D4DB51 #51DB58
monochromatic
#5F1E93 #7F29C6 #9D51DB #BA84E5 #D6B6F0

Accessibility & contrast

On white

4.53
#9D51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#9D51DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D51DB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D51DB#FFFFFF#000000##000000
##9D51DB1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#3377D8
Tritanopia (blue-blind)
#936E8F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9d51db;
/* rgb */ color: rgb(157, 81, 219);
/* oklch */ color: oklch(59.1% 0.206 306.4);
Tailwind
colors: {
  custom: {
    50: '#be86e7',
    500: '#9d51db',
    950: '#000000',
  },
}
SCSS
$custom: #9d51db;
$custom-light: #be86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d51db",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 273.043,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59056,
    "c": 0.20566,
    "h": 306.4
  },
  "luminance": 0.18167
}

Semantic roles & 50–950 ramp

primary
#9D51DB
secondary
#C1DFA9
accent
#E93F8B
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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