#9D51EB#9D51EB

#9D51EB is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 60.1% C 0.223 H 302.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9D51EB
RGBrgb(157, 81, 235)
HSLhsl(270, 79%, 62%)
HSVhsv(270, 66%, 92%)
CMYKcmyk(33.2%, 65.5%, 0%, 7.8%)
CIE-LABlab(50.75, 59.55, -65.83)
CIE-LCHlch(50.75, 88.76, 312.13°)
OKLaboklab(60.14% 0.1209 -0.187)
OKLCHoklch(60.14% 0.223 302.9)
XYZxyz(31.8390, 19.0511, 80.5810)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D51EB #9FEB51
analogous
#5152EB #9D51EB #EA51EB
triadic
#9D51EB #EB9D51 #51EB9D
tetradic
#9D51EB #EB5152 #9FEB51 #51EBEA
square
#9D51EB #EB5152 #9FEB51 #51EBEA
split-complementary
#9D51EB #EBEA51 #52EB51
monochromatic
#6014AE #7E1AE5 #9D51EB #BC88F1 #DBBFF8

Accessibility & contrast

On white

4.37
#9D51EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#9D51EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D51EB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D51EB#FFFFFF#000000##000000
##9D51EB1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#1078E8
Tritanopia (blue-blind)
#8E7397
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9d51eb;
/* rgb */ color: rgb(157, 81, 235);
/* oklch */ color: oklch(60.1% 0.223 302.9);
Tailwind
colors: {
  custom: {
    50: '#bf87f2',
    500: '#9d51eb',
    950: '#000000',
  },
}
SCSS
$custom: #9d51eb;
$custom-light: #bf87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d51eb",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 269.61,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60144,
    "c": 0.2227,
    "h": 302.9
  },
  "luminance": 0.19051
}

Semantic roles & 50–950 ramp

primary
#9D51EB
secondary
#CCE8B0
accent
#DC0A74
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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