#9A5EEB#9A5EEB

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

Color values

HEX#9A5EEB
RGBrgb(154, 94, 235)
HSLhsl(266, 78%, 65%)
HSVhsv(266, 60%, 92%)
CMYKcmyk(34.5%, 60%, 0%, 7.8%)
CIE-LABlab(52.81, 52.40, -62.51)
CIE-LCHlch(52.81, 81.57, 309.97°)
OKLaboklab(61.56% 0.1025 -0.1774)
OKLCHoklch(61.56% 0.205 300)
XYZxyz(32.3209, 20.8733, 80.9073)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5EEB #AFEB5E
analogous
#5E69EB #9A5EEB #E15EEB
triadic
#9A5EEB #EB9A5E #5EEB9A
tetradic
#9A5EEB #EB5E69 #AFEB5E #5EEBE1
square
#9A5EEB #EB5E69 #AFEB5E #5EEBE1
split-complementary
#9A5EEB #EBE15E #69EB5E
monochromatic
#5B17B8 #7828E4 #9A5EEB #BC94F2 #DECBF9

Accessibility & contrast

On white

4.06
#9A5EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9A5EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5EEB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5EEB#FFFFFF#000000##000000
##9A5EEB1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#2C7DE8
Tritanopia (blue-blind)
#897C9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5eeb;
/* rgb */ color: rgb(154, 94, 235);
/* oklch */ color: oklch(61.6% 0.205 300.0);
Tailwind
colors: {
  custom: {
    50: '#bc8ef2',
    500: '#9a5eeb',
    950: '#000000',
  },
}
SCSS
$custom: #9a5eeb;
$custom-light: #bc8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5eeb",
  "rgb": {
    "r": 154,
    "g": 94,
    "b": 235
  },
  "hsl": {
    "h": 265.532,
    "s": 77.901,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61562,
    "c": 0.20491,
    "h": 300
  },
  "luminance": 0.20874
}

Semantic roles & 50–950 ramp

primary
#9A5EEB
secondary
#D6EBBA
accent
#DA0B82
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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