#9A5DE8#9A5DE8

#9A5DE8 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.2% C 0.203 H 300.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9A5DE8
RGBrgb(154, 93, 232)
HSLhsl(266, 75%, 64%)
HSVhsv(266, 60%, 91%)
CMYKcmyk(33.6%, 59.9%, 0%, 9%)
CIE-LABlab(52.43, 52.18, -61.45)
CIE-LCHlch(52.43, 80.62, 310.34°)
OKLaboklab(61.22% 0.1038 -0.1743)
OKLCHoklch(61.22% 0.203 300.8)
XYZxyz(31.8028, 20.5247, 78.6145)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5DE8 #ABE85D
analogous
#5D65E8 #9A5DE8 #DF5DE8
triadic
#9A5DE8 #E89A5D #5DE89A
tetradic
#9A5DE8 #E85D65 #ABE85D #5DE8DF
square
#9A5DE8 #E85D65 #ABE85D #5DE8DF
split-complementary
#9A5DE8 #E8DF5D #65E85D
monochromatic
#5C19B1 #7927E0 #9A5DE8 #BB93F0 #DDC8F7

Accessibility & contrast

On white

4.11
#9A5DE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#9A5DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5DE8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5DE8#FFFFFF#000000##000000
##9A5DE81.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEC
Deuteranopia (green-blind)
#2F7CE5
Tritanopia (blue-blind)
#8A7A9A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5de8;
/* rgb */ color: rgb(154, 93, 232);
/* oklch */ color: oklch(61.2% 0.203 300.8);
Tailwind
colors: {
  custom: {
    50: '#bc8ef0',
    500: '#9a5de8',
    950: '#000000',
  },
}
SCSS
$custom: #9a5de8;
$custom-light: #bc8ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5de8",
  "rgb": {
    "r": 154,
    "g": 93,
    "b": 232
  },
  "hsl": {
    "h": 266.331,
    "s": 75.135,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61221,
    "c": 0.20287,
    "h": 300.8
  },
  "luminance": 0.20525
}

Semantic roles & 50–950 ramp

primary
#9A5DE8
secondary
#D3E9B8
accent
#D70E7F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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