#9A51DB#9A51DB

#9A51DB is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.7% C 0.205 H 305.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#9A51DB
RGBrgb(154, 81, 219)
HSLhsl(272, 66%, 59%)
HSVhsv(272, 63%, 86%)
CMYKcmyk(29.7%, 63%, 0%, 14.1%)
CIE-LABlab(49.34, 55.18, -59.07)
CIE-LCHlch(49.34, 80.84, 313.05°)
OKLaboklab(58.72% 0.1183 -0.1673)
OKLCHoklch(58.72% 0.205 305.3)
XYZxyz(29.0522, 17.8695, 68.9227)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A51DB #92DB51
analogous
#5551DB #9A51DB #DB51D7
triadic
#9A51DB #DB9A51 #51DB9A
tetradic
#9A51DB #DB5551 #92DB51 #51D7DB
square
#9A51DB #DB5551 #92DB51 #51D7DB
split-complementary
#9A51DB #D7DB51 #51DB55
monochromatic
#5C1E93 #7C29C6 #9A51DB #B784E5 #D5B6F0

Accessibility & contrast

On white

4.59
#9A51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#9A51DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9A51DB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A51DB#FFFFFF#000000##FFFFFF
##9A51DB1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#2F75D8
Tritanopia (blue-blind)
#8F6E8F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9a51db;
/* rgb */ color: rgb(154, 81, 219);
/* oklch */ color: oklch(58.7% 0.205 305.3);
Tailwind
colors: {
  custom: {
    50: '#bc86e7',
    500: '#9a51db',
    950: '#000000',
  },
}
SCSS
$custom: #9a51db;
$custom-light: #bc86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a51db",
  "rgb": {
    "r": 154,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 271.739,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58716,
    "c": 0.20489,
    "h": 305.3
  },
  "luminance": 0.17869
}

Semantic roles & 50–950 ramp

primary
#9A51DB
secondary
#C2DFA9
accent
#E93F8F
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9A51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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