#9A5EF1#9A5EF1

#9A5EF1 is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 62.0% C 0.212 H 298.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9A5EF1
RGBrgb(154, 94, 241)
HSLhsl(264, 84%, 66%)
HSVhsv(264, 61%, 95%)
CMYKcmyk(36.1%, 61%, 0%, 5.5%)
CIE-LABlab(53.20, 53.88, -65.25)
CIE-LCHlch(53.20, 84.62, 309.55°)
OKLaboklab(61.97% 0.1022 -0.1855)
OKLCHoklch(61.97% 0.212 298.9)
XYZxyz(33.2024, 21.2259, 85.5498)
Luminance0.2123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5EF1 #B5F15E
analogous
#5E6BF1 #9A5EF1 #E45EF1
triadic
#9A5EF1 #F19A5E #5EF19A
tetradic
#9A5EF1 #F15E6B #B5F15E #5EF1E4
square
#9A5EF1 #F15E6B #B5F15E #5EF1E4
split-complementary
#9A5EF1 #F1E45E #6BF15E
monochromatic
#5A11C4 #7726EC #9A5EF1 #BD96F6 #E1CFFB

Accessibility & contrast

On white

4.00
#9A5EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#9A5EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5EF1
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5EF1#FFFFFF#000000##000000
##9A5EF11.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF6
Deuteranopia (green-blind)
#207EEE
Tritanopia (blue-blind)
#867E9F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9a5ef1;
/* rgb */ color: rgb(154, 94, 241);
/* oklch */ color: oklch(62.0% 0.212 298.9);
Tailwind
colors: {
  custom: {
    50: '#bd8ef6',
    500: '#9a5ef1',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ef1;
$custom-light: #bd8ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ef1",
  "rgb": {
    "r": 154,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 264.49,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61965,
    "c": 0.21179,
    "h": 298.9
  },
  "luminance": 0.21226
}

Semantic roles & 50–950 ramp

primary
#9A5EF1
secondary
#DAEEBD
accent
#E00587
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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