#9A5EEC#9A5EEC

#9A5EEC is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.6% C 0.206 H 299.8°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9A5EEC
RGBrgb(154, 94, 236)
HSLhsl(265, 79%, 65%)
HSVhsv(265, 60%, 93%)
CMYKcmyk(34.7%, 60.2%, 0%, 7.5%)
CIE-LABlab(52.87, 52.64, -62.97)
CIE-LCHlch(52.87, 82.08, 309.90°)
OKLaboklab(61.63% 0.1025 -0.1788)
OKLCHoklch(61.63% 0.206 299.8)
XYZxyz(32.4658, 20.9313, 81.6703)
Luminance0.2093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5EEC #B0EC5E
analogous
#5E69EC #9A5EEC #E15EEC
triadic
#9A5EEC #EC9A5E #5EEC9A
tetradic
#9A5EEC #EC5E69 #B0EC5E #5EECE1
square
#9A5EEC #EC5E69 #B0EC5E #5EECE1
split-complementary
#9A5EEC #ECE15E #69EC5E
monochromatic
#5B16BA #7827E6 #9A5EEC #BC95F2 #DFCBF9

Accessibility & contrast

On white

4.05
#9A5EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#9A5EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5EEC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5EEC#FFFFFF#000000##000000
##9A5EEC1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF1
Deuteranopia (green-blind)
#2B7DE9
Tritanopia (blue-blind)
#887C9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5eec;
/* rgb */ color: rgb(154, 94, 236);
/* oklch */ color: oklch(61.6% 0.206 299.8);
Tailwind
colors: {
  custom: {
    50: '#bd8ef3',
    500: '#9a5eec',
    950: '#000000',
  },
}
SCSS
$custom: #9a5eec;
$custom-light: #bd8ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5eec",
  "rgb": {
    "r": 154,
    "g": 94,
    "b": 236
  },
  "hsl": {
    "h": 265.352,
    "s": 78.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61628,
    "c": 0.20606,
    "h": 299.8
  },
  "luminance": 0.20932
}

Semantic roles & 50–950 ramp

primary
#9A5EEC
secondary
#D7EBBB
accent
#DB0A83
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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