#9B51E5#9B51E5

#9B51E5 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.5% C 0.216 H 303.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9B51E5
RGBrgb(155, 81, 229)
HSLhsl(270, 74%, 61%)
HSVhsv(270, 65%, 90%)
CMYKcmyk(32.3%, 64.6%, 0%, 10.2%)
CIE-LABlab(50.11, 57.73, -63.49)
CIE-LCHlch(50.11, 85.81, 312.28°)
OKLaboklab(59.51% 0.1189 -0.1802)
OKLCHoklch(59.51% 0.216 303.4)
XYZxyz(30.5996, 18.5106, 76.0744)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B51E5 #9BE551
analogous
#5151E5 #9B51E5 #E551E5
triadic
#9B51E5 #E59B51 #51E59B
tetradic
#9B51E5 #E55151 #9BE551 #51E5E5
square
#9B51E5 #E55151 #9BE551 #51E5E5
split-complementary
#9B51E5 #E5E551 #51E551
monochromatic
#5E18A3 #7C20D8 #9B51E5 #BA86ED #D8BBF5

Accessibility & contrast

On white

4.47
#9B51E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#9B51E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B51E5
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B51E5#FFFFFF#000000##000000
##9B51E51.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#1D77E2
Tritanopia (blue-blind)
#8D7194
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9b51e5;
/* rgb */ color: rgb(155, 81, 229);
/* oklch */ color: oklch(59.5% 0.216 303.4);
Tailwind
colors: {
  custom: {
    50: '#bd86ee',
    500: '#9b51e5',
    950: '#000000',
  },
}
SCSS
$custom: #9b51e5;
$custom-light: #bd86ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9b51e5",
  "rgb": {
    "r": 155,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 270,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59507,
    "c": 0.21589,
    "h": 303.4
  },
  "luminance": 0.18511
}

Semantic roles & 50–950 ramp

primary
#9B51E5
secondary
#C9E5AD
accent
#D60F73
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9B51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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