#9A51DC#9A51DC

#9A51DC is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.8% C 0.206 H 305.0°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#9A51DC
RGBrgb(154, 81, 220)
HSLhsl(272, 67%, 59%)
HSVhsv(272, 63%, 86%)
CMYKcmyk(30%, 63.2%, 0%, 13.7%)
CIE-LABlab(49.40, 55.41, -59.54)
CIE-LCHlch(49.40, 81.34, 312.95°)
OKLaboklab(58.78% 0.1182 -0.1687)
OKLCHoklch(58.78% 0.206 305)
XYZxyz(29.1843, 17.9224, 69.6182)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A51DC #93DC51
analogous
#5551DC #9A51DC #DC51D8
triadic
#9A51DC #DC9A51 #51DC9A
tetradic
#9A51DC #DC5551 #93DC51 #51D8DC
square
#9A51DC #DC5551 #93DC51 #51D8DC
split-complementary
#9A51DC #D8DC51 #51DC55
monochromatic
#5C1E95 #7C28C8 #9A51DC #B884E6 #D5B7F0

Accessibility & contrast

On white

4.58
#9A51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#9A51DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A51DC
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A51DC#FFFFFF#000000##000000
##9A51DC1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#2D76D9
Tritanopia (blue-blind)
#8E6E8F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9a51dc;
/* rgb */ color: rgb(154, 81, 220);
/* oklch */ color: oklch(58.8% 0.206 305.0);
Tailwind
colors: {
  custom: {
    50: '#bc86e8',
    500: '#9a51dc',
    950: '#000000',
  },
}
SCSS
$custom: #9a51dc;
$custom-light: #bc86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9a51dc",
  "rgb": {
    "r": 154,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 271.511,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58783,
    "c": 0.20597,
    "h": 305
  },
  "luminance": 0.17922
}

Semantic roles & 50–950 ramp

primary
#9A51DC
secondary
#C3E0A9
accent
#E93E90
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9A51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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