#9A51DF#9A51DF

#9A51DF is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 59.0% C 0.209 H 304.3°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#9A51DF
RGBrgb(154, 81, 223)
HSLhsl(271, 69%, 60%)
HSVhsv(271, 64%, 87%)
CMYKcmyk(30.9%, 63.7%, 0%, 12.5%)
CIE-LABlab(49.60, 56.11, -60.93)
CIE-LCHlch(49.60, 82.83, 312.64°)
OKLaboklab(58.99% 0.118 -0.1727)
OKLCHoklch(58.99% 0.209 304.3)
XYZxyz(29.5852, 18.0827, 71.7294)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A51DF #96DF51
analogous
#5351DF #9A51DF #DF51DD
triadic
#9A51DF #DF9A51 #51DF9A
tetradic
#9A51DF #DF5351 #96DF51 #51DDDF
square
#9A51DF #DF5351 #96DF51 #51DDDF
split-complementary
#9A51DF #DDDF51 #51DF53
monochromatic
#5D1C99 #7C26CD #9A51DF #B885E9 #D6B8F2

Accessibility & contrast

On white

4.55
#9A51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#9A51DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A51DF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A51DF#FFFFFF#000000##000000
##9A51DF1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#2876DC
Tritanopia (blue-blind)
#8D6F91
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9a51df;
/* rgb */ color: rgb(154, 81, 223);
/* oklch */ color: oklch(59.0% 0.209 304.3);
Tailwind
colors: {
  custom: {
    50: '#bc86ea',
    500: '#9a51df',
    950: '#000000',
  },
}
SCSS
$custom: #9a51df;
$custom-light: #bc86ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9a51df",
  "rgb": {
    "r": 154,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 270.845,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58985,
    "c": 0.20921,
    "h": 304.3
  },
  "luminance": 0.18083
}

Semantic roles & 50–950 ramp

primary
#9A51DF
secondary
#C5E1AA
accent
#EC3C91
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9A51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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