#9A5AEE#9A5AEE

#9A5AEE is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.2% C 0.214 H 300.0°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9A5AEE
RGBrgb(154, 90, 238)
HSLhsl(266, 81%, 64%)
HSVhsv(266, 62%, 93%)
CMYKcmyk(35.3%, 62.2%, 0%, 6.7%)
CIE-LABlab(52.24, 55.20, -65.12)
CIE-LCHlch(52.24, 85.37, 310.29°)
OKLaboklab(61.21% 0.1069 -0.1851)
OKLCHoklch(61.21% 0.214 300)
XYZxyz(32.4114, 20.3551, 83.0937)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5AEE #AEEE5A
analogous
#5A64EE #9A5AEE #E45AEE
triadic
#9A5AEE #EE9A5A #5AEE9A
tetradic
#9A5AEE #EE5A64 #AEEE5A #5AEEE4
square
#9A5AEE #EE5A64 #AEEE5A #5AEEE4
split-complementary
#9A5AEE #EEE45A #64EE5A
monochromatic
#5C13BA #7823E8 #9A5AEE #BC91F4 #DEC9F9

Accessibility & contrast

On white

4.14
#9A5AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#9A5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5AEE
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5AEE#FFFFFF#000000##000000
##9A5AEE1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF3
Deuteranopia (green-blind)
#1C7BEB
Tritanopia (blue-blind)
#887A9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5aee;
/* rgb */ color: rgb(154, 90, 238);
/* oklch */ color: oklch(61.2% 0.214 300.0);
Tailwind
colors: {
  custom: {
    50: '#bd8cf4',
    500: '#9a5aee',
    950: '#000000',
  },
}
SCSS
$custom: #9a5aee;
$custom-light: #bd8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5aee",
  "rgb": {
    "r": 154,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 265.946,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61206,
    "c": 0.21374,
    "h": 300
  },
  "luminance": 0.20355
}

Semantic roles & 50–950 ramp

primary
#9A5AEE
secondary
#D5ECB8
accent
#DE0881
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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