#9D51E8#9D51E8

#9D51E8 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.9% C 0.220 H 303.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9D51E8
RGBrgb(157, 81, 232)
HSLhsl(270, 77%, 61%)
HSVhsv(270, 65%, 91%)
CMYKcmyk(32.3%, 65.1%, 0%, 9%)
CIE-LABlab(50.55, 58.85, -64.46)
CIE-LCHlch(50.55, 87.28, 312.39°)
OKLaboklab(59.94% 0.1212 -0.183)
OKLCHoklch(59.94% 0.22 303.5)
XYZxyz(31.4092, 18.8792, 78.3176)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D51E8 #9CE851
analogous
#5251E8 #9D51E8 #E851E7
triadic
#9D51E8 #E89D51 #51E89D
tetradic
#9D51E8 #E85251 #9CE851 #51E7E8
square
#9D51E8 #E85251 #9CE851 #51E7E8
split-complementary
#9D51E8 #E7E851 #51E852
monochromatic
#6016A8 #7F1DDE #9D51E8 #BB87EF #DABDF6

Accessibility & contrast

On white

4.40
#9D51E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#9D51E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D51E8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D51E8#FFFFFF#000000##000000
##9D51E81.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077ED
Deuteranopia (green-blind)
#1B78E5
Tritanopia (blue-blind)
#8F7296
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9d51e8;
/* rgb */ color: rgb(157, 81, 232);
/* oklch */ color: oklch(59.9% 0.220 303.5);
Tailwind
colors: {
  custom: {
    50: '#bf86f0',
    500: '#9d51e8',
    950: '#000000',
  },
}
SCSS
$custom: #9d51e8;
$custom-light: #bf86f0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d51e8",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 270.199,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59936,
    "c": 0.21951,
    "h": 303.5
  },
  "luminance": 0.18879
}

Semantic roles & 50–950 ramp

primary
#9D51E8
secondary
#CAE7AE
accent
#D90D72
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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