#9A5CE9#9A5CE9

#9A5CE9 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.1% C 0.205 H 300.7°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9A5CE9
RGBrgb(154, 92, 233)
HSLhsl(266, 76%, 64%)
HSVhsv(266, 61%, 91%)
CMYKcmyk(33.9%, 60.5%, 0%, 8.6%)
CIE-LABlab(52.29, 52.95, -62.22)
CIE-LCHlch(52.29, 81.70, 310.40°)
OKLaboklab(61.15% 0.1049 -0.1766)
OKLCHoklch(61.15% 0.205 300.7)
XYZxyz(31.8580, 20.4073, 79.3356)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CE9 #ABE95C
analogous
#5C64E9 #9A5CE9 #E05CE9
triadic
#9A5CE9 #E99A5C #5CE99A
tetradic
#9A5CE9 #E95C64 #ABE95C #5CE9E0
square
#9A5CE9 #E95C64 #ABE95C #5CE9E0
split-complementary
#9A5CE9 #E9E05C #64E95C
monochromatic
#5C18B3 #7926E2 #9A5CE9 #BB92F0 #DDC8F8

Accessibility & contrast

On white

4.13
#9A5CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#9A5CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CE9
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CE9#FFFFFF#000000##000000
##9A5CE91.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CED
Deuteranopia (green-blind)
#2C7CE6
Tritanopia (blue-blind)
#897A9A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5ce9;
/* rgb */ color: rgb(154, 92, 233);
/* oklch */ color: oklch(61.1% 0.205 300.7);
Tailwind
colors: {
  custom: {
    50: '#bc8df1',
    500: '#9a5ce9',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ce9;
$custom-light: #bc8df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ce9",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 233
  },
  "hsl": {
    "h": 266.383,
    "s": 76.216,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61146,
    "c": 0.20538,
    "h": 300.7
  },
  "luminance": 0.20408
}

Semantic roles & 50–950 ramp

primary
#9A5CE9
secondary
#D3E9B8
accent
#D80D7F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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