#9C51CF#9C51CF

#9C51CF is a mid, vivid violet. Relative luminance 0.175; OKLCH L 58.2% C 0.193 H 309.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9C51CF
RGBrgb(156, 81, 207)
HSLhsl(276, 57%, 56%)
HSVhsv(276, 61%, 81%)
CMYKcmyk(24.6%, 60.9%, 0%, 18.8%)
CIE-LABlab(48.83, 52.90, -53.02)
CIE-LCHlch(48.83, 74.90, 314.93°)
OKLaboklab(58.16% 0.1213 -0.1495)
OKLCHoklch(58.16% 0.193 309.1)
XYZxyz(27.9130, 17.4582, 60.9187)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C51CF #84CF51
analogous
#5D51CF #9C51CF #CF51C3
triadic
#9C51CF #CF9C51 #51CF9C
tetradic
#9C51CF #CF5D51 #84CF51 #51C3CF
square
#9C51CF #CF5D51 #84CF51 #51C3CF
split-complementary
#9C51CF #C3CF51 #51CF5D
monochromatic
#5C2482 #7E31B2 #9C51CF #B781DC #D3B1E9

Accessibility & contrast

On white

4.68
#9C51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#9C51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C51CF
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C51CF#FFFFFF#000000##FFFFFF
##9C51CF1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1871D3
Deuteranopia (green-blind)
#4075CC
Tritanopia (blue-blind)
#956988
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9c51cf;
/* rgb */ color: rgb(156, 81, 207);
/* oklch */ color: oklch(58.2% 0.193 309.1);
Tailwind
colors: {
  custom: {
    50: '#bd86de',
    500: '#9c51cf',
    950: '#000000',
  },
}
SCSS
$custom: #9c51cf;
$custom-light: #bd86de;
$custom-dark: #000000;
JSON
{
  "hex": "#9c51cf",
  "rgb": {
    "r": 156,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 275.714,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.58163,
    "c": 0.19252,
    "h": 309.1
  },
  "luminance": 0.17458
}

Semantic roles & 50–950 ramp

primary
#9C51CF
secondary
#B9D8A4
accent
#E04885
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9C51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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