#9A5AE3#9A5AE3

#9A5AE3 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.5% C 0.201 H 302.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9A5AE3
RGBrgb(154, 90, 227)
HSLhsl(268, 71%, 62%)
HSVhsv(268, 60%, 89%)
CMYKcmyk(32.2%, 60.4%, 0%, 11%)
CIE-LABlab(51.53, 52.53, -60.08)
CIE-LCHlch(51.53, 79.80, 311.16°)
OKLaboklab(60.47% 0.1075 -0.1703)
OKLCHoklch(60.47% 0.201 302.3)
XYZxyz(30.8445, 19.7284, 74.8411)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5AE3 #A3E35A
analogous
#5A5FE3 #9A5AE3 #DE5AE3
triadic
#9A5AE3 #E39A5A #5AE39A
tetradic
#9A5AE3 #E35A5F #A3E35A #5AE3DE
square
#9A5AE3 #E35A5F #A3E35A #5AE3DE
split-complementary
#9A5AE3 #E3DE5A #5FE35A
monochromatic
#5D1CA6 #7A26DA #9A5AE3 #BA8EEC #DAC3F5

Accessibility & contrast

On white

4.25
#9A5AE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#9A5AE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5AE3
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5AE3#FFFFFF#000000##000000
##9A5AE31.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE7
Deuteranopia (green-blind)
#327AE0
Tritanopia (blue-blind)
#8C7796
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a5ae3;
/* rgb */ color: rgb(154, 90, 227);
/* oklch */ color: oklch(60.5% 0.201 302.3);
Tailwind
colors: {
  custom: {
    50: '#bc8cec',
    500: '#9a5ae3',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ae3;
$custom-light: #bc8cec;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ae3",
  "rgb": {
    "r": 154,
    "g": 90,
    "b": 227
  },
  "hsl": {
    "h": 268.029,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60467,
    "c": 0.20134,
    "h": 302.3
  },
  "luminance": 0.19728
}

Semantic roles & 50–950 ramp

primary
#9A5AE3
secondary
#CEE6B3
accent
#D31279
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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