#9A5EEF#9A5EEF

#9A5EEF is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.8% C 0.209 H 299.2°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9A5EEF
RGBrgb(154, 94, 239)
HSLhsl(265, 82%, 65%)
HSVhsv(265, 61%, 94%)
CMYKcmyk(35.6%, 60.7%, 0%, 6.3%)
CIE-LABlab(53.07, 53.38, -64.34)
CIE-LCHlch(53.07, 83.60, 309.68°)
OKLaboklab(61.83% 0.1023 -0.1828)
OKLCHoklch(61.83% 0.21 299.2)
XYZxyz(32.9053, 21.1071, 83.9851)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5EEF #B3EF5E
analogous
#5E6AEF #9A5EEF #E35EEF
triadic
#9A5EEF #EF9A5E #5EEF9A
tetradic
#9A5EEF #EF5E6A #B3EF5E #5EEFE3
square
#9A5EEF #EF5E6A #B3EF5E #5EEFE3
split-complementary
#9A5EEF #EFE35E #6AEF5E
monochromatic
#5A13C0 #7726E9 #9A5EEF #BD96F5 #E0CDFA

Accessibility & contrast

On white

4.02
#9A5EEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#9A5EEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5EEF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5EEF#FFFFFF#000000##000000
##9A5EEF1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF4
Deuteranopia (green-blind)
#257DEC
Tritanopia (blue-blind)
#877D9E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9a5eef;
/* rgb */ color: rgb(154, 94, 239);
/* oklch */ color: oklch(61.8% 0.209 299.2);
Tailwind
colors: {
  custom: {
    50: '#bd8ef5',
    500: '#9a5eef',
    950: '#000000',
  },
}
SCSS
$custom: #9a5eef;
$custom-light: #bd8ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5eef",
  "rgb": {
    "r": 154,
    "g": 94,
    "b": 239
  },
  "hsl": {
    "h": 264.828,
    "s": 81.921,
    "l": 65.294
  },
  "oklch": {
    "l": 0.6183,
    "c": 0.2095,
    "h": 299.2
  },
  "luminance": 0.21107
}

Semantic roles & 50–950 ramp

primary
#9A5EEF
secondary
#D9EDBC
accent
#DE0785
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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