#9A5DE2#9A5DE2

#9A5DE2 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.8% C 0.196 H 302.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9A5DE2
RGBrgb(154, 93, 226)
HSLhsl(268, 70%, 63%)
HSVhsv(268, 59%, 89%)
CMYKcmyk(31.9%, 58.8%, 0%, 11.4%)
CIE-LABlab(52.05, 50.72, -58.67)
CIE-LCHlch(52.05, 77.56, 310.84°)
OKLaboklab(60.83% 0.1039 -0.1661)
OKLCHoklch(60.83% 0.196 302)
XYZxyz(30.9651, 20.1896, 74.2024)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5DE2 #A5E25D
analogous
#5D62E2 #9A5DE2 #DD5DE2
triadic
#9A5DE2 #E29A5D #5DE29A
tetradic
#9A5DE2 #E25D62 #A5E25D #5DE2DD
square
#9A5DE2 #E25D62 #A5E25D #5DE2DD
split-complementary
#9A5DE2 #E2DD5D #62E25D
monochromatic
#5D1EA7 #7A29D9 #9A5DE2 #BA91EB #DBC5F5

Accessibility & contrast

On white

4.17
#9A5DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9A5DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5DE2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5DE2#FFFFFF#000000##000000
##9A5DE21.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#177BE6
Deuteranopia (green-blind)
#387CDF
Tritanopia (blue-blind)
#8C7897
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5de2;
/* rgb */ color: rgb(154, 93, 226);
/* oklch */ color: oklch(60.8% 0.196 302.0);
Tailwind
colors: {
  custom: {
    50: '#bc8dec',
    500: '#9a5de2',
    950: '#000000',
  },
}
SCSS
$custom: #9a5de2;
$custom-light: #bc8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5de2",
  "rgb": {
    "r": 154,
    "g": 93,
    "b": 226
  },
  "hsl": {
    "h": 267.519,
    "s": 69.634,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60828,
    "c": 0.19598,
    "h": 302
  },
  "luminance": 0.2019
}

Semantic roles & 50–950 ramp

primary
#9A5DE2
secondary
#CFE6B5
accent
#D2147B
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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