#9A51DD#9A51DD

#9A51DD is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.9% C 0.207 H 304.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9A51DD
RGBrgb(154, 81, 221)
HSLhsl(271, 67%, 59%)
HSVhsv(271, 63%, 87%)
CMYKcmyk(30.3%, 63.3%, 0%, 13.3%)
CIE-LABlab(49.47, 55.65, -60.00)
CIE-LCHlch(49.47, 81.83, 312.84°)
OKLaboklab(58.85% 0.1182 -0.17)
OKLCHoklch(58.85% 0.207 304.8)
XYZxyz(29.3171, 17.9755, 70.3177)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A51DD #94DD51
analogous
#5451DD #9A51DD #DD51DA
triadic
#9A51DD #DD9A51 #51DD9A
tetradic
#9A51DD #DD5451 #94DD51 #51DADD
square
#9A51DD #DD5451 #94DD51 #51DADD
split-complementary
#9A51DD #DADD51 #51DD54
monochromatic
#5C1D96 #7C27C9 #9A51DD #B884E7 #D5B7F1

Accessibility & contrast

On white

4.57
#9A51DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#9A51DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A51DD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A51DD#FFFFFF#000000##000000
##9A51DD1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E1
Deuteranopia (green-blind)
#2C76DA
Tritanopia (blue-blind)
#8E6F90
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9a51dd;
/* rgb */ color: rgb(154, 81, 221);
/* oklch */ color: oklch(58.9% 0.207 304.8);
Tailwind
colors: {
  custom: {
    50: '#bc86e8',
    500: '#9a51dd',
    950: '#000000',
  },
}
SCSS
$custom: #9a51dd;
$custom-light: #bc86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9a51dd",
  "rgb": {
    "r": 154,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 271.286,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5885,
    "c": 0.20705,
    "h": 304.8
  },
  "luminance": 0.17975
}

Semantic roles & 50–950 ramp

primary
#9A51DD
secondary
#C4E0AA
accent
#EA3E90
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9A51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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