#9A5BEA#9A5BEA

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

Color values

HEX#9A5BEA
RGBrgb(154, 91, 234)
HSLhsl(266, 77%, 64%)
HSVhsv(266, 61%, 92%)
CMYKcmyk(34.2%, 61.1%, 0%, 8.2%)
CIE-LABlab(52.17, 53.71, -62.99)
CIE-LCHlch(52.17, 82.78, 310.45°)
OKLaboklab(61.07% 0.106 -0.1788)
OKLCHoklch(61.07% 0.208 300.7)
XYZxyz(31.9152, 20.2925, 80.0614)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5BEA #ABEA5B
analogous
#5B63EA #9A5BEA #E25BEA
triadic
#9A5BEA #EA9A5B #5BEA9A
tetradic
#9A5BEA #EA5B63 #ABEA5B #5BEAE2
square
#9A5BEA #EA5B63 #ABEA5B #5BEAE2
split-complementary
#9A5BEA #EAE25B #63EA5B
monochromatic
#5C17B4 #7925E3 #9A5BEA #BB91F1 #DDC8F8

Accessibility & contrast

On white

4.15
#9A5BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#9A5BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5BEA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5BEA#FFFFFF#000000##000000
##9A5BEA1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEF
Deuteranopia (green-blind)
#287CE7
Tritanopia (blue-blind)
#897A9A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5bea;
/* rgb */ color: rgb(154, 91, 234);
/* oklch */ color: oklch(61.1% 0.208 300.7);
Tailwind
colors: {
  custom: {
    50: '#bd8cf1',
    500: '#9a5bea',
    950: '#000000',
  },
}
SCSS
$custom: #9a5bea;
$custom-light: #bd8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5bea",
  "rgb": {
    "r": 154,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 266.434,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61073,
    "c": 0.20788,
    "h": 300.7
  },
  "luminance": 0.20293
}

Semantic roles & 50–950 ramp

primary
#9A5BEA
secondary
#D3EAB7
accent
#DA0C7F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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