#9E51DB#9E51DB

#9E51DB is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.2% C 0.206 H 306.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9E51DB
RGBrgb(158, 81, 219)
HSLhsl(273, 66%, 59%)
HSVhsv(273, 63%, 86%)
CMYKcmyk(27.9%, 63%, 0%, 14.1%)
CIE-LABlab(49.82, 56.07, -58.27)
CIE-LCHlch(49.82, 80.86, 313.90°)
OKLaboklab(59.17% 0.1235 -0.1648)
OKLCHoklch(59.17% 0.206 306.8)
XYZxyz(29.8265, 18.2688, 68.9590)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E51DB #8EDB51
analogous
#5951DB #9E51DB #DB51D3
triadic
#9E51DB #DB9E51 #51DB9E
tetradic
#9E51DB #DB5951 #8EDB51 #51D3DB
square
#9E51DB #DB5951 #8EDB51 #51D3DB
split-complementary
#9E51DB #D3DB51 #51DB59
monochromatic
#601E93 #8029C6 #9E51DB #BA84E5 #D7B6F0

Accessibility & contrast

On white

4.51
#9E51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#9E51DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E51DB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E51DB#FFFFFF#000000##000000
##9E51DB1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#3477D8
Tritanopia (blue-blind)
#946D8F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9e51db;
/* rgb */ color: rgb(158, 81, 219);
/* oklch */ color: oklch(59.2% 0.206 306.8);
Tailwind
colors: {
  custom: {
    50: '#bf86e7',
    500: '#9e51db',
    950: '#000000',
  },
}
SCSS
$custom: #9e51db;
$custom-light: #bf86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e51db",
  "rgb": {
    "r": 158,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 273.478,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5917,
    "c": 0.20592,
    "h": 306.8
  },
  "luminance": 0.18268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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