#9A5CEA#9A5CEA

#9A5CEA is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.2% C 0.207 H 300.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9A5CEA
RGBrgb(154, 92, 234)
HSLhsl(266, 77%, 64%)
HSVhsv(266, 61%, 92%)
CMYKcmyk(34.2%, 60.7%, 0%, 8.2%)
CIE-LABlab(52.36, 53.19, -62.68)
CIE-LCHlch(52.36, 82.21, 310.32°)
OKLaboklab(61.21% 0.1049 -0.1779)
OKLCHoklch(61.21% 0.207 300.5)
XYZxyz(32.0013, 20.4646, 80.0901)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CEA #ACEA5C
analogous
#5C65EA #9A5CEA #E15CEA
triadic
#9A5CEA #EA9A5C #5CEA9A
tetradic
#9A5CEA #EA5C65 #ACEA5C #5CEAE1
square
#9A5CEA #EA5C65 #ACEA5C #5CEAE1
split-complementary
#9A5CEA #EAE15C #65EA5C
monochromatic
#5C17B4 #7826E3 #9A5CEA #BC92F1 #DDC8F8

Accessibility & contrast

On white

4.12
#9A5CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#9A5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CEA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CEA#FFFFFF#000000##000000
##9A5CEA1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEF
Deuteranopia (green-blind)
#2A7CE7
Tritanopia (blue-blind)
#897A9B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5cea;
/* rgb */ color: rgb(154, 92, 234);
/* oklch */ color: oklch(61.2% 0.207 300.5);
Tailwind
colors: {
  custom: {
    50: '#bd8df1',
    500: '#9a5cea',
    950: '#000000',
  },
}
SCSS
$custom: #9a5cea;
$custom-light: #bd8df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5cea",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 266.197,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61213,
    "c": 0.20652,
    "h": 300.5
  },
  "luminance": 0.20465
}

Semantic roles & 50–950 ramp

primary
#9A5CEA
secondary
#D4EAB8
accent
#D90C80
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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