#9A5AE5#9A5AE5

#9A5AE5 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.6% C 0.204 H 301.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9A5AE5
RGBrgb(154, 90, 229)
HSLhsl(268, 73%, 63%)
HSVhsv(268, 61%, 90%)
CMYKcmyk(32.8%, 60.7%, 0%, 10.2%)
CIE-LABlab(51.66, 53.01, -61.00)
CIE-LCHlch(51.66, 80.81, 310.99°)
OKLaboklab(60.6% 0.1074 -0.173)
OKLCHoklch(60.6% 0.204 301.8)
XYZxyz(31.1221, 19.8394, 76.3033)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5AE5 #A5E55A
analogous
#5A5FE5 #9A5AE5 #E05AE5
triadic
#9A5AE5 #E59A5A #5AE59A
tetradic
#9A5AE5 #E55A5F #A5E55A #5AE5E0
square
#9A5AE5 #E55A5F #A5E55A #5AE5E0
split-complementary
#9A5AE5 #E5E05A #5FE55A
monochromatic
#5D1BAA #7A25DD #9A5AE5 #BA8FED #DBC4F6

Accessibility & contrast

On white

4.23
#9A5AE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9A5AE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5AE5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5AE5#FFFFFF#000000##000000
##9A5AE51.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE9
Deuteranopia (green-blind)
#2F7BE2
Tritanopia (blue-blind)
#8B7797
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a5ae5;
/* rgb */ color: rgb(154, 90, 229);
/* oklch */ color: oklch(60.6% 0.204 301.8);
Tailwind
colors: {
  custom: {
    50: '#bc8cee',
    500: '#9a5ae5',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ae5;
$custom-light: #bc8cee;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ae5",
  "rgb": {
    "r": 154,
    "g": 90,
    "b": 229
  },
  "hsl": {
    "h": 267.626,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.606,
    "c": 0.2036,
    "h": 301.8
  },
  "luminance": 0.19839
}

Semantic roles & 50–950 ramp

primary
#9A5AE5
secondary
#CFE7B4
accent
#D5117B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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