#9A5AED#9A5AED

#9A5AED is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.1% C 0.213 H 300.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9A5AED
RGBrgb(154, 90, 237)
HSLhsl(266, 80%, 64%)
HSVhsv(266, 62%, 93%)
CMYKcmyk(35%, 62%, 0%, 7.1%)
CIE-LABlab(52.17, 54.95, -64.66)
CIE-LCHlch(52.17, 84.86, 310.36°)
OKLaboklab(61.14% 0.107 -0.1837)
OKLCHoklch(61.14% 0.213 300.2)
XYZxyz(32.2649, 20.2965, 82.3221)
Luminance0.2030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5AED #ADED5A
analogous
#5A64ED #9A5AED #E35AED
triadic
#9A5AED #ED9A5A #5AED9A
tetradic
#9A5AED #ED5A64 #ADED5A #5AEDE3
square
#9A5AED #ED5A64 #ADED5A #5AEDE3
split-complementary
#9A5AED #EDE35A #64ED5A
monochromatic
#5C14B8 #7823E7 #9A5AED #BC91F3 #DEC8F9

Accessibility & contrast

On white

4.15
#9A5AED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#9A5AED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5AED
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5AED#FFFFFF#000000##000000
##9A5AED1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF2
Deuteranopia (green-blind)
#1F7BEA
Tritanopia (blue-blind)
#887A9B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5aed;
/* rgb */ color: rgb(154, 90, 237);
/* oklch */ color: oklch(61.1% 0.213 300.2);
Tailwind
colors: {
  custom: {
    50: '#bd8cf4',
    500: '#9a5aed',
    950: '#000000',
  },
}
SCSS
$custom: #9a5aed;
$custom-light: #bd8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5aed",
  "rgb": {
    "r": 154,
    "g": 90,
    "b": 237
  },
  "hsl": {
    "h": 266.122,
    "s": 80.328,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61138,
    "c": 0.21261,
    "h": 300.2
  },
  "luminance": 0.20297
}

Semantic roles & 50–950 ramp

primary
#9A5AED
secondary
#D5EBB8
accent
#DD0980
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5AED

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

Preview Lab → · Contrast checker → · Palette generator →

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