#9D51BC#9D51BC

#9D51BC is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.1% C 0.173 H 315.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9D51BC
RGBrgb(157, 81, 188)
HSLhsl(283, 44%, 53%)
HSVhsv(283, 57%, 74%)
CMYKcmyk(16.5%, 56.9%, 0%, 26.3%)
CIE-LABlab(47.86, 48.99, -43.60)
CIE-LCHlch(47.86, 65.58, 318.33°)
OKLaboklab(57.13% 0.1223 -0.1219)
OKLCHoklch(57.13% 0.173 315.1)
XYZxyz(25.9227, 16.6846, 49.4221)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D51BC #70BC51
analogous
#6851BC #9D51BC #BC51A5
triadic
#9D51BC #BC9D51 #51BC9D
tetradic
#9D51BC #BC6851 #70BC51 #51A5BC
square
#9D51BC #BC6851 #70BC51 #51A5BC
split-complementary
#9D51BC #A5BC51 #51BC68
monochromatic
#57296A #7B3A96 #9D51BC #B67DCD #CFA9DE

Accessibility & contrast

On white

4.84
#9D51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#9D51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D51BC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D51BC#FFFFFF#000000##FFFFFF
##9D51BC1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346DBF
Deuteranopia (green-blind)
#5074B9
Tritanopia (blue-blind)
#9B637F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9d51bc;
/* rgb */ color: rgb(157, 81, 188);
/* oklch */ color: oklch(57.1% 0.173 315.1);
Tailwind
colors: {
  custom: {
    50: '#bc85d1',
    500: '#9d51bc',
    950: '#000000',
  },
}
SCSS
$custom: #9d51bc;
$custom-light: #bc85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d51bc",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 282.617,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57127,
    "c": 0.17266,
    "h": 315.1
  },
  "luminance": 0.16684
}

Semantic roles & 50–950 ramp

primary
#9D51BC
secondary
#ABCC9D
accent
#D45479
background
#FBF8FC
surface
#F7EFF9
border
#D0CAD2
text
#120B14
muted
#817C82

Preview Lab

Preview with #9D51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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