#9A5CE3#9A5CE3

#9A5CE3 is a mid, vivid violet. Relative luminance 0.201; OKLCH L 60.8% C 0.199 H 302.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9A5CE3
RGBrgb(154, 92, 227)
HSLhsl(268, 71%, 63%)
HSVhsv(268, 59%, 89%)
CMYKcmyk(32.2%, 59.5%, 0%, 11%)
CIE-LABlab(51.92, 51.49, -59.45)
CIE-LCHlch(51.92, 78.65, 310.89°)
OKLaboklab(60.75% 0.1051 -0.1684)
OKLCHoklch(60.75% 0.199 302)
XYZxyz(31.0155, 20.0703, 74.8981)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CE3 #A5E35C
analogous
#5C61E3 #9A5CE3 #DE5CE3
triadic
#9A5CE3 #E39A5C #5CE39A
tetradic
#9A5CE3 #E35C61 #A5E35C #5CE3DE
square
#9A5CE3 #E35C61 #A5E35C #5CE3DE
split-complementary
#9A5CE3 #E3DE5C #61E35C
monochromatic
#5D1DA8 #7A28DA #9A5CE3 #BA90EC #DBC4F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A5CE3#FFFFFF#000000##000000
##9A5CE31.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)
#0E7BE7
Deuteranopia (green-blind)
#357BE0
Tritanopia (blue-blind)
#8B7897
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5ce3;
/* rgb */ color: rgb(154, 92, 227);
/* oklch */ color: oklch(60.8% 0.199 302.0);
Tailwind
colors: {
  custom: {
    50: '#bc8dec',
    500: '#9a5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ce3;
$custom-light: #bc8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ce3",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 267.556,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6075,
    "c": 0.19854,
    "h": 302
  },
  "luminance": 0.2007
}

Semantic roles & 50–950 ramp

primary
#9A5CE3
secondary
#CFE6B5
accent
#D3137B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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