#9D51BB#9D51BB

#9D51BB is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.1% C 0.172 H 315.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9D51BB
RGBrgb(157, 81, 187)
HSLhsl(283, 44%, 53%)
HSVhsv(283, 57%, 73%)
CMYKcmyk(16%, 56.7%, 0%, 26.7%)
CIE-LABlab(47.81, 48.78, -43.11)
CIE-LCHlch(47.81, 65.10, 318.53°)
OKLaboklab(57.07% 0.1222 -0.1204)
OKLCHoklch(57.07% 0.172 315.4)
XYZxyz(25.8153, 16.6416, 48.8564)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D51BB #6FBB51
analogous
#6851BB #9D51BB #BB51A4
triadic
#9D51BB #BB9D51 #51BB9D
tetradic
#9D51BB #BB6851 #6FBB51 #51A4BB
square
#9D51BB #BB6851 #6FBB51 #51A4BB
split-complementary
#9D51BB #A4BB51 #51BB68
monochromatic
#572969 #7B3A95 #9D51BB #B67DCC #CFA9DD

Accessibility & contrast

On white

4.85
#9D51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#9D51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D51BB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D51BB#FFFFFF#000000##FFFFFF
##9D51BB1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356DBE
Deuteranopia (green-blind)
#5174B8
Tritanopia (blue-blind)
#9B637E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9d51bb;
/* rgb */ color: rgb(157, 81, 187);
/* oklch */ color: oklch(57.1% 0.172 315.4);
Tailwind
colors: {
  custom: {
    50: '#bc85d0',
    500: '#9d51bb',
    950: '#000000',
  },
}
SCSS
$custom: #9d51bb;
$custom-light: #bc85d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d51bb",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 283.019,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57069,
    "c": 0.17161,
    "h": 315.4
  },
  "luminance": 0.16641
}

Semantic roles & 50–950 ramp

primary
#9D51BB
secondary
#AACB9D
accent
#D45478
background
#FBF8FC
surface
#F7EFF9
border
#D0CAD2
text
#120B14
muted
#817C82

Preview Lab

Preview with #9D51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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