#9A5DDC#9A5DDC

#9A5DDC is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.4% C 0.189 H 303.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9A5DDC
RGBrgb(154, 93, 220)
HSLhsl(269, 64%, 61%)
HSVhsv(269, 58%, 86%)
CMYKcmyk(30%, 57.7%, 0%, 13.7%)
CIE-LABlab(51.69, 49.27, -55.87)
CIE-LCHlch(51.69, 74.49, 311.41°)
OKLaboklab(60.44% 0.104 -0.1579)
OKLCHoklch(60.44% 0.189 303.4)
XYZxyz(30.1561, 19.8661, 69.9421)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5DDC #9FDC5D
analogous
#5D60DC #9A5DDC #DA5DDC
triadic
#9A5DDC #DC9A5D #5DDC9A
tetradic
#9A5DDC #DC5D60 #9FDC5D #5DDCDA
square
#9A5DDC #DC5D60 #9FDC5D #5DDCDA
split-complementary
#9A5DDC #DCDA5D #60DC5D
monochromatic
#5D229D #7B2DCF #9A5DDC #B98FE7 #D9C2F2

Accessibility & contrast

On white

4.22
#9A5DDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9A5DDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5DDC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5DDC#FFFFFF#000000##000000
##9A5DDC1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#247AE0
Deuteranopia (green-blind)
#3F7BD9
Tritanopia (blue-blind)
#8E7694
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a5ddc;
/* rgb */ color: rgb(154, 93, 220);
/* oklch */ color: oklch(60.4% 0.189 303.4);
Tailwind
colors: {
  custom: {
    50: '#bb8de7',
    500: '#9a5ddc',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ddc;
$custom-light: #bb8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ddc",
  "rgb": {
    "r": 154,
    "g": 93,
    "b": 220
  },
  "hsl": {
    "h": 268.819,
    "s": 64.467,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60444,
    "c": 0.18908,
    "h": 303.4
  },
  "luminance": 0.19866
}

Semantic roles & 50–950 ramp

primary
#9A5DDC
secondary
#CBE2B3
accent
#CC1976
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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