#9D51BF#9D51BF

#9D51BF is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.3% C 0.176 H 314.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9D51BF
RGBrgb(157, 81, 191)
HSLhsl(281, 46%, 53%)
HSVhsv(281, 58%, 75%)
CMYKcmyk(17.8%, 57.6%, 0%, 25.1%)
CIE-LABlab(48.03, 49.63, -45.08)
CIE-LCHlch(48.03, 67.05, 317.75°)
OKLaboklab(57.3% 0.1224 -0.1262)
OKLCHoklch(57.3% 0.176 314.1)
XYZxyz(26.2495, 16.8153, 51.1430)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D51BF #73BF51
analogous
#6651BF #9D51BF #BF51AA
triadic
#9D51BF #BF9D51 #51BF9D
tetradic
#9D51BF #BF6651 #73BF51 #51AABF
square
#9D51BF #BF6651 #73BF51 #51AABF
split-complementary
#9D51BF #AABF51 #51BF66
monochromatic
#58286D #7C399A #9D51BF #B67ECF #CFAAE0

Accessibility & contrast

On white

4.81
#9D51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#9D51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D51BF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D51BF#FFFFFF#000000##FFFFFF
##9D51BF1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316EC3
Deuteranopia (green-blind)
#4E74BC
Tritanopia (blue-blind)
#9A6480
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9d51bf;
/* rgb */ color: rgb(157, 81, 191);
/* oklch */ color: oklch(57.3% 0.176 314.1);
Tailwind
colors: {
  custom: {
    50: '#bd85d3',
    500: '#9d51bf',
    950: '#000000',
  },
}
SCSS
$custom: #9d51bf;
$custom-light: #bd85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d51bf",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 281.455,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.17583,
    "h": 314.1
  },
  "luminance": 0.16815
}

Semantic roles & 50–950 ramp

primary
#9D51BF
secondary
#ADCE9E
accent
#D6527B
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120B14
muted
#817C83

Preview Lab

Preview with #9D51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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