#9A5BDB#9A5BDB

#9A5BDB is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.1% C 0.191 H 303.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9A5BDB
RGBrgb(154, 91, 219)
HSLhsl(270, 64%, 61%)
HSVhsv(270, 58%, 86%)
CMYKcmyk(29.7%, 58.4%, 0%, 14.1%)
CIE-LABlab(51.23, 50.09, -56.03)
CIE-LCHlch(51.23, 75.16, 311.79°)
OKLaboklab(60.09% 0.1064 -0.1584)
OKLCHoklch(60.09% 0.191 303.9)
XYZxyz(29.8508, 19.4668, 69.1889)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5BDB #9CDB5B
analogous
#5B5CDB #9A5BDB #DA5BDB
triadic
#9A5BDB #DB9A5B #5BDB9A
tetradic
#9A5BDB #DB5B5C #9CDB5B #5BDBDA
square
#9A5BDB #DB5B5C #9CDB5B #5BDBDA
split-complementary
#9A5BDB #DBDA5B #5CDB5B
monochromatic
#5D229A #7B2DCC #9A5BDB #B98DE6 #D8BFF1

Accessibility & contrast

On white

4.29
#9A5BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#9A5BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5BDB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5BDB#FFFFFF#000000##000000
##9A5BDB1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2079DF
Deuteranopia (green-blind)
#3D7AD8
Tritanopia (blue-blind)
#8E7592
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9a5bdb;
/* rgb */ color: rgb(154, 91, 219);
/* oklch */ color: oklch(60.1% 0.191 303.9);
Tailwind
colors: {
  custom: {
    50: '#bb8ce7',
    500: '#9a5bdb',
    950: '#000000',
  },
}
SCSS
$custom: #9a5bdb;
$custom-light: #bb8ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5bdb",
  "rgb": {
    "r": 154,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 269.531,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.6009,
    "c": 0.19083,
    "h": 303.9
  },
  "luminance": 0.19467
}

Semantic roles & 50–950 ramp

primary
#9A5BDB
secondary
#C9E1B1
accent
#CC1A74
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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