#9A5AEC#9A5AEC

#9A5AEC is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.1% C 0.211 H 300.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9A5AEC
RGBrgb(154, 90, 236)
HSLhsl(266, 79%, 64%)
HSVhsv(266, 62%, 93%)
CMYKcmyk(34.7%, 61.9%, 0%, 7.5%)
CIE-LABlab(52.11, 54.71, -64.21)
CIE-LCHlch(52.11, 84.36, 310.43°)
OKLaboklab(61.07% 0.107 -0.1824)
OKLCHoklch(61.07% 0.211 300.4)
XYZxyz(32.1192, 20.2383, 81.5548)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5AEC #ACEC5A
analogous
#5A63EC #9A5AEC #E35AEC
triadic
#9A5AEC #EC9A5A #5AEC9A
tetradic
#9A5AEC #EC5A63 #ACEC5A #5AECE3
square
#9A5AEC #EC5A63 #ACEC5A #5AECE3
split-complementary
#9A5AEC #ECE35A #63EC5A
monochromatic
#5C15B7 #7823E6 #9A5AEC #BC91F2 #DDC8F9

Accessibility & contrast

On white

4.16
#9A5AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#9A5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5AEC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5AEC#FFFFFF#000000##000000
##9A5AEC1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#217BE9
Tritanopia (blue-blind)
#887A9B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5aec;
/* rgb */ color: rgb(154, 90, 236);
/* oklch */ color: oklch(61.1% 0.211 300.4);
Tailwind
colors: {
  custom: {
    50: '#bd8cf3',
    500: '#9a5aec',
    950: '#000000',
  },
}
SCSS
$custom: #9a5aec;
$custom-light: #bd8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5aec",
  "rgb": {
    "r": 154,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 266.301,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6107,
    "c": 0.21149,
    "h": 300.4
  },
  "luminance": 0.20238
}

Semantic roles & 50–950 ramp

primary
#9A5AEC
secondary
#D4EBB7
accent
#DC0A80
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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