#9A5AEA#9A5AEA

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

Color values

HEX#9A5AEA
RGBrgb(154, 90, 234)
HSLhsl(267, 77%, 64%)
HSVhsv(267, 62%, 92%)
CMYKcmyk(34.2%, 61.5%, 0%, 8.2%)
CIE-LABlab(51.98, 54.22, -63.30)
CIE-LCHlch(51.98, 83.34, 310.58°)
OKLaboklab(60.93% 0.1071 -0.1797)
OKLCHoklch(60.93% 0.209 300.8)
XYZxyz(31.8303, 20.1227, 80.0331)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5AEA #AAEA5A
analogous
#5A62EA #9A5AEA #E25AEA
triadic
#9A5AEA #EA9A5A #5AEA9A
tetradic
#9A5AEA #EA5A62 #AAEA5A #5AEAE2
square
#9A5AEA #EA5A62 #AAEA5A #5AEAE2
split-complementary
#9A5AEA #EAE25A #62EA5A
monochromatic
#5C17B3 #7924E3 #9A5AEA #BB90F1 #DCC7F8

Accessibility & contrast

On white

4.18
#9A5AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#9A5AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5AEA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5AEA#FFFFFF#000000##000000
##9A5AEA1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEF
Deuteranopia (green-blind)
#267BE7
Tritanopia (blue-blind)
#89799A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5aea;
/* rgb */ color: rgb(154, 90, 234);
/* oklch */ color: oklch(60.9% 0.209 300.8);
Tailwind
colors: {
  custom: {
    50: '#bd8cf1',
    500: '#9a5aea',
    950: '#000000',
  },
}
SCSS
$custom: #9a5aea;
$custom-light: #bd8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5aea",
  "rgb": {
    "r": 154,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 266.667,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.60934,
    "c": 0.20924,
    "h": 300.8
  },
  "luminance": 0.20123
}

Semantic roles & 50–950 ramp

primary
#9A5AEA
secondary
#D3E9B6
accent
#DA0C7E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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