#9C51EB#9C51EB

#9C51EB is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.0% C 0.223 H 302.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9C51EB
RGBrgb(156, 81, 235)
HSLhsl(269, 79%, 62%)
HSVhsv(269, 66%, 92%)
CMYKcmyk(33.6%, 65.5%, 0%, 7.8%)
CIE-LABlab(50.63, 59.35, -66.02)
CIE-LCHlch(50.63, 88.77, 311.95°)
OKLaboklab(60.03% 0.1196 -0.1876)
OKLCHoklch(60.03% 0.223 302.5)
XYZxyz(31.6446, 18.9509, 80.5719)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C51EB #A0EB51
analogous
#5153EB #9C51EB #E951EB
triadic
#9C51EB #EB9C51 #51EB9C
tetradic
#9C51EB #EB5153 #A0EB51 #51EBE9
square
#9C51EB #EB5153 #A0EB51 #51EBE9
split-complementary
#9C51EB #EBE951 #53EB51
monochromatic
#5F14AE #7D1AE5 #9C51EB #BB88F1 #DABFF8

Accessibility & contrast

On white

4.38
#9C51EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#9C51EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C51EB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C51EB#FFFFFF#000000##000000
##9C51EB1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#0C78E8
Tritanopia (blue-blind)
#8C7497
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9c51eb;
/* rgb */ color: rgb(156, 81, 235);
/* oklch */ color: oklch(60.0% 0.223 302.5);
Tailwind
colors: {
  custom: {
    50: '#be86f2',
    500: '#9c51eb',
    950: '#000000',
  },
}
SCSS
$custom: #9c51eb;
$custom-light: #be86f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c51eb",
  "rgb": {
    "r": 156,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 269.221,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60034,
    "c": 0.22251,
    "h": 302.5
  },
  "luminance": 0.18951
}

Semantic roles & 50–950 ramp

primary
#9C51EB
secondary
#CDE8B0
accent
#DC0A75
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9C51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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