#9A5AE9#9A5AE9

#9A5AE9 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.9% C 0.208 H 301.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9A5AE9
RGBrgb(154, 90, 233)
HSLhsl(267, 76%, 63%)
HSVhsv(267, 61%, 91%)
CMYKcmyk(33.9%, 61.4%, 0%, 8.6%)
CIE-LABlab(51.91, 53.98, -62.84)
CIE-LCHlch(51.91, 82.84, 310.66°)
OKLaboklab(60.87% 0.1072 -0.1784)
OKLCHoklch(60.87% 0.208 301)
XYZxyz(31.6871, 20.0654, 79.2786)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5AE9 #A9E95A
analogous
#5A61E9 #9A5AE9 #E15AE9
triadic
#9A5AE9 #E99A5A #5AE99A
tetradic
#9A5AE9 #E95A61 #A9E95A #5AE9E1
square
#9A5AE9 #E95A61 #A9E95A #5AE9E1
split-complementary
#9A5AE9 #E9E15A #61E95A
monochromatic
#5C18B1 #7924E2 #9A5AE9 #BB90F0 #DCC6F7

Accessibility & contrast

On white

4.19
#9A5AE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#9A5AE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5AE9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5AE9#FFFFFF#000000##000000
##9A5AE91.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEE
Deuteranopia (green-blind)
#287BE6
Tritanopia (blue-blind)
#8A7999
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5ae9;
/* rgb */ color: rgb(154, 90, 233);
/* oklch */ color: oklch(60.9% 0.208 301.0);
Tailwind
colors: {
  custom: {
    50: '#bd8cf1',
    500: '#9a5ae9',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ae9;
$custom-light: #bd8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ae9",
  "rgb": {
    "r": 154,
    "g": 90,
    "b": 233
  },
  "hsl": {
    "h": 266.853,
    "s": 76.471,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60867,
    "c": 0.20812,
    "h": 301
  },
  "luminance": 0.20066
}

Semantic roles & 50–950 ramp

primary
#9A5AE9
secondary
#D2E9B6
accent
#D90D7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5AE9

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

Preview Lab → · Contrast checker → · Palette generator →

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