#9B51DF#9B51DF

#9B51DF is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.1% C 0.209 H 304.7°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#9B51DF
RGBrgb(155, 81, 223)
HSLhsl(271, 69%, 60%)
HSVhsv(271, 64%, 87%)
CMYKcmyk(30.5%, 63.7%, 0%, 12.5%)
CIE-LABlab(49.72, 56.33, -60.73)
CIE-LCHlch(49.72, 82.83, 312.85°)
OKLaboklab(59.1% 0.1193 -0.1721)
OKLCHoklch(59.1% 0.209 304.7)
XYZxyz(29.7763, 18.1813, 71.7384)
Luminance0.1818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B51DF #95DF51
analogous
#5451DF #9B51DF #DF51DC
triadic
#9B51DF #DF9B51 #51DF9B
tetradic
#9B51DF #DF5451 #95DF51 #51DCDF
square
#9B51DF #DF5451 #95DF51 #51DCDF
split-complementary
#9B51DF #DCDF51 #51DF54
monochromatic
#5D1C99 #7D26CD #9B51DF #B985E9 #D6B8F2

Accessibility & contrast

On white

4.53
#9B51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#9B51DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B51DF
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B51DF#FFFFFF#000000##000000
##9B51DF1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#2A76DC
Tritanopia (blue-blind)
#8F6F91
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9b51df;
/* rgb */ color: rgb(155, 81, 223);
/* oklch */ color: oklch(59.1% 0.209 304.7);
Tailwind
colors: {
  custom: {
    50: '#bd86ea',
    500: '#9b51df',
    950: '#000000',
  },
}
SCSS
$custom: #9b51df;
$custom-light: #bd86ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9b51df",
  "rgb": {
    "r": 155,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 271.268,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59097,
    "c": 0.20945,
    "h": 304.7
  },
  "luminance": 0.18181
}

Semantic roles & 50–950 ramp

primary
#9B51DF
secondary
#C5E1AA
accent
#EC3C90
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9B51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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