#9A5EE4#9A5EE4

#9A5EE4 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 61.1% C 0.197 H 301.4°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9A5EE4
RGBrgb(154, 94, 228)
HSLhsl(267, 71%, 63%)
HSVhsv(267, 59%, 89%)
CMYKcmyk(32.5%, 58.8%, 0%, 10.6%)
CIE-LABlab(52.37, 50.68, -59.28)
CIE-LCHlch(52.37, 77.99, 310.53°)
OKLaboklab(61.1% 0.1027 -0.1679)
OKLCHoklch(61.1% 0.197 301.4)
XYZxyz(31.3294, 20.4767, 75.6856)
Luminance0.2048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5EE4 #A8E45E
analogous
#5E65E4 #9A5EE4 #DD5EE4
triadic
#9A5EE4 #E49A5E #5EE49A
tetradic
#9A5EE4 #E45E65 #A8E45E #5EE4DD
square
#9A5EE4 #E45E65 #A8E45E #5EE4DD
split-complementary
#9A5EE4 #E4DD5E #65E45E
monochromatic
#5C1DAB #792ADB #9A5EE4 #BB92ED #DCC7F6

Accessibility & contrast

On white

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

On black

5.10
#9A5EE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5EE4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5EE4#FFFFFF#000000##000000
##9A5EE41.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#167CE8
Deuteranopia (green-blind)
#377CE1
Tritanopia (blue-blind)
#8B7A98
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5ee4;
/* rgb */ color: rgb(154, 94, 228);
/* oklch */ color: oklch(61.1% 0.197 301.4);
Tailwind
colors: {
  custom: {
    50: '#bc8eed',
    500: '#9a5ee4',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ee4;
$custom-light: #bc8eed;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ee4",
  "rgb": {
    "r": 154,
    "g": 94,
    "b": 228
  },
  "hsl": {
    "h": 266.866,
    "s": 71.277,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61102,
    "c": 0.19686,
    "h": 301.4
  },
  "luminance": 0.20477
}

Semantic roles & 50–950 ramp

primary
#9A5EE4
secondary
#D1E7B7
accent
#D3127D
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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