#9A5DEB#9A5DEB

#9A5DEB is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.4% C 0.206 H 300.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9A5DEB
RGBrgb(154, 93, 235)
HSLhsl(266, 78%, 64%)
HSVhsv(266, 60%, 92%)
CMYKcmyk(34.5%, 60.4%, 0%, 7.8%)
CIE-LABlab(52.62, 52.92, -62.83)
CIE-LCHlch(52.62, 82.14, 310.11°)
OKLaboklab(61.42% 0.1037 -0.1783)
OKLCHoklch(61.42% 0.206 300.2)
XYZxyz(32.2325, 20.6966, 80.8779)
Luminance0.2070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5DEB #AEEB5D
analogous
#5D67EB #9A5DEB #E15DEB
triadic
#9A5DEB #EB9A5D #5DEB9A
tetradic
#9A5DEB #EB5D67 #AEEB5D #5DEBE1
square
#9A5DEB #EB5D67 #AEEB5D #5DEBE1
split-complementary
#9A5DEB #EBE15D #67EB5D
monochromatic
#5C17B7 #7827E4 #9A5DEB #BC93F2 #DECAF8

Accessibility & contrast

On white

4.09
#9A5DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#9A5DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5DEB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5DEB#FFFFFF#000000##000000
##9A5DEB1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF0
Deuteranopia (green-blind)
#2A7DE8
Tritanopia (blue-blind)
#897B9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5deb;
/* rgb */ color: rgb(154, 93, 235);
/* oklch */ color: oklch(61.4% 0.206 300.2);
Tailwind
colors: {
  custom: {
    50: '#bd8ef2',
    500: '#9a5deb',
    950: '#000000',
  },
}
SCSS
$custom: #9a5deb;
$custom-light: #bd8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5deb",
  "rgb": {
    "r": 154,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 265.775,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6142,
    "c": 0.20629,
    "h": 300.2
  },
  "luminance": 0.20697
}

Semantic roles & 50–950 ramp

primary
#9A5DEB
secondary
#D5EBB9
accent
#DA0B81
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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