#9B51CD#9B51CD

#9B51CD is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.9% C 0.190 H 309.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#9B51CD
RGBrgb(155, 81, 205)
HSLhsl(276, 55%, 56%)
HSVhsv(276, 60%, 80%)
CMYKcmyk(24.4%, 60.5%, 0%, 19.6%)
CIE-LABlab(48.59, 52.21, -52.27)
CIE-LCHlch(48.59, 73.88, 314.97°)
OKLaboklab(57.92% 0.1201 -0.1473)
OKLCHoklch(57.92% 0.19 309.2)
XYZxyz(27.4773, 17.2617, 59.6301)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B51CD #83CD51
analogous
#5D51CD #9B51CD #CD51C1
triadic
#9B51CD #CD9B51 #51CD9B
tetradic
#9B51CD #CD5D51 #83CD51 #51C1CD
square
#9B51CD #CD5D51 #83CD51 #51C1CD
split-complementary
#9B51CD #C1CD51 #51CD5D
monochromatic
#5B257F #7C32AF #9B51CD #B681DB #D2B0E8

Accessibility & contrast

On white

4.72
#9B51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#9B51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B51CD
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B51CD#FFFFFF#000000##FFFFFF
##9B51CD1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C70D1
Deuteranopia (green-blind)
#4074CA
Tritanopia (blue-blind)
#946987
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9b51cd;
/* rgb */ color: rgb(155, 81, 205);
/* oklch */ color: oklch(57.9% 0.190 309.2);
Tailwind
colors: {
  custom: {
    50: '#bc86dd',
    500: '#9b51cd',
    950: '#000000',
  },
}
SCSS
$custom: #9b51cd;
$custom-light: #bc86dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9b51cd",
  "rgb": {
    "r": 155,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 275.806,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5792,
    "c": 0.19006,
    "h": 309.2
  },
  "luminance": 0.17261
}

Semantic roles & 50–950 ramp

primary
#9B51CD
secondary
#B8D7A3
accent
#DF4985
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9B51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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