#9A5DEC#9A5DEC

#9A5DEC is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.5% C 0.207 H 300.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9A5DEC
RGBrgb(154, 93, 236)
HSLhsl(266, 79%, 65%)
HSVhsv(266, 61%, 93%)
CMYKcmyk(34.7%, 60.6%, 0%, 7.5%)
CIE-LABlab(52.68, 53.16, -63.28)
CIE-LCHlch(52.68, 82.65, 310.03°)
OKLaboklab(61.49% 0.1036 -0.1797)
OKLCHoklch(61.49% 0.207 300)
XYZxyz(32.3774, 20.7546, 81.6409)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5DEC #AFEC5D
analogous
#5D68EC #9A5DEC #E15DEC
triadic
#9A5DEC #EC9A5D #5DEC9A
tetradic
#9A5DEC #EC5D68 #AFEC5D #5DECE1
square
#9A5DEC #EC5D68 #AFEC5D #5DECE1
split-complementary
#9A5DEC #ECE15D #68EC5D
monochromatic
#5B16B9 #7826E6 #9A5DEC #BC94F2 #DECBF9

Accessibility & contrast

On white

4.08
#9A5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#9A5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5DEC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5DEC#FFFFFF#000000##000000
##9A5DEC1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#287DE9
Tritanopia (blue-blind)
#887C9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5dec;
/* rgb */ color: rgb(154, 93, 236);
/* oklch */ color: oklch(61.5% 0.207 300.0);
Tailwind
colors: {
  custom: {
    50: '#bd8ef3',
    500: '#9a5dec',
    950: '#000000',
  },
}
SCSS
$custom: #9a5dec;
$custom-light: #bd8ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5dec",
  "rgb": {
    "r": 154,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 265.594,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61487,
    "c": 0.20743,
    "h": 300
  },
  "luminance": 0.20755
}

Semantic roles & 50–950 ramp

primary
#9A5DEC
secondary
#D6EBBA
accent
#DB0A82
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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