#9A5BDC#9A5BDC

#9A5BDC is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.2% C 0.192 H 303.7°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9A5BDC
RGBrgb(154, 91, 220)
HSLhsl(269, 65%, 61%)
HSVhsv(269, 59%, 86%)
CMYKcmyk(30%, 58.6%, 0%, 13.7%)
CIE-LABlab(51.29, 50.33, -56.50)
CIE-LCHlch(51.29, 75.67, 311.69°)
OKLaboklab(60.15% 0.1064 -0.1598)
OKLCHoklch(60.15% 0.192 303.7)
XYZxyz(29.9829, 19.5196, 69.8844)
Luminance0.1952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5BDC #9DDC5B
analogous
#5B5CDC #9A5BDC #DA5BDC
triadic
#9A5BDC #DC9A5B #5BDC9A
tetradic
#9A5BDC #DC5B5C #9DDC5B #5BDCDA
square
#9A5BDC #DC5B5C #9DDC5B #5BDCDA
split-complementary
#9A5BDC #DCDA5B #5CDC5B
monochromatic
#5D219B #7B2CCE #9A5BDC #B98DE7 #D8C0F2

Accessibility & contrast

On white

4.28
#9A5BDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#9A5BDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5BDC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5BDC#FFFFFF#000000##000000
##9A5BDC1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E79E0
Deuteranopia (green-blind)
#3C7AD9
Tritanopia (blue-blind)
#8E7593
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9a5bdc;
/* rgb */ color: rgb(154, 91, 220);
/* oklch */ color: oklch(60.2% 0.192 303.7);
Tailwind
colors: {
  custom: {
    50: '#bc8ce7',
    500: '#9a5bdc',
    950: '#000000',
  },
}
SCSS
$custom: #9a5bdc;
$custom-light: #bc8ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5bdc",
  "rgb": {
    "r": 154,
    "g": 91,
    "b": 220
  },
  "hsl": {
    "h": 269.302,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60154,
    "c": 0.19198,
    "h": 303.7
  },
  "luminance": 0.1952
}

Semantic roles & 50–950 ramp

primary
#9A5BDC
secondary
#CAE2B1
accent
#CD1975
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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