#9A5DEE#9A5DEE

#9A5DEE is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.6% C 0.210 H 299.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9A5DEE
RGBrgb(154, 93, 238)
HSLhsl(265, 81%, 65%)
HSVhsv(265, 61%, 93%)
CMYKcmyk(35.3%, 60.9%, 0%, 6.7%)
CIE-LABlab(52.81, 53.66, -64.20)
CIE-LCHlch(52.81, 83.67, 309.89°)
OKLaboklab(61.62% 0.1035 -0.1824)
OKLCHoklch(61.62% 0.21 299.6)
XYZxyz(32.6696, 20.8715, 83.1798)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5DEE #B1EE5D
analogous
#5D69EE #9A5DEE #E25DEE
triadic
#9A5DEE #EE9A5D #5DEE9A
tetradic
#9A5DEE #EE5D69 #B1EE5D #5DEEE2
square
#9A5DEE #EE5D69 #B1EE5D #5DEEE2
split-complementary
#9A5DEE #EEE25D #69EE5D
monochromatic
#5B14BD #7726E8 #9A5DEE #BD94F4 #DFCCFA

Accessibility & contrast

On white

4.06
#9A5DEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9A5DEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5DEE
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5DEE#FFFFFF#000000##000000
##9A5DEE1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF3
Deuteranopia (green-blind)
#247DEB
Tritanopia (blue-blind)
#887C9D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5dee;
/* rgb */ color: rgb(154, 93, 238);
/* oklch */ color: oklch(61.6% 0.210 299.6);
Tailwind
colors: {
  custom: {
    50: '#bd8ef4',
    500: '#9a5dee',
    950: '#000000',
  },
}
SCSS
$custom: #9a5dee;
$custom-light: #bd8ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5dee",
  "rgb": {
    "r": 154,
    "g": 93,
    "b": 238
  },
  "hsl": {
    "h": 265.241,
    "s": 81.006,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61622,
    "c": 0.20971,
    "h": 299.6
  },
  "luminance": 0.20872
}

Semantic roles & 50–950 ramp

primary
#9A5DEE
secondary
#D7ECBB
accent
#DD0884
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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