#9D51CF#9D51CF

#9D51CF is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.3% C 0.193 H 309.5°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9D51CF
RGBrgb(157, 81, 207)
HSLhsl(276, 57%, 56%)
HSVhsv(276, 61%, 81%)
CMYKcmyk(24.2%, 60.9%, 0%, 18.8%)
CIE-LABlab(48.96, 53.13, -52.82)
CIE-LCHlch(48.96, 74.92, 315.17°)
OKLaboklab(58.28% 0.1226 -0.1488)
OKLCHoklch(58.28% 0.193 309.5)
XYZxyz(28.1073, 17.5585, 60.9278)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D51CF #83CF51
analogous
#5E51CF #9D51CF #CF51C2
triadic
#9D51CF #CF9D51 #51CF9D
tetradic
#9D51CF #CF5E51 #83CF51 #51C2CF
square
#9D51CF #CF5E51 #83CF51 #51C2CF
split-complementary
#9D51CF #C2CF51 #51CF5E
monochromatic
#5C2482 #7F31B2 #9D51CF #B881DC #D3B1E9

Accessibility & contrast

On white

4.65
#9D51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#9D51CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9D51CF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D51CF#FFFFFF#000000##FFFFFF
##9D51CF1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A71D3
Deuteranopia (green-blind)
#4175CC
Tritanopia (blue-blind)
#966988
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9d51cf;
/* rgb */ color: rgb(157, 81, 207);
/* oklch */ color: oklch(58.3% 0.193 309.5);
Tailwind
colors: {
  custom: {
    50: '#bd86de',
    500: '#9d51cf',
    950: '#000000',
  },
}
SCSS
$custom: #9d51cf;
$custom-light: #bd86de;
$custom-dark: #000000;
JSON
{
  "hex": "#9d51cf",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 276.19,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5828,
    "c": 0.19284,
    "h": 309.5
  },
  "luminance": 0.17558
}

Semantic roles & 50–950 ramp

primary
#9D51CF
secondary
#B9D8A4
accent
#E04884
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9D51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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