#9540AD#9540AD

#9540AD is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.0% C 0.179 H 318.1°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9540AD
RGBrgb(149, 64, 173)
HSLhsl(287, 46%, 46%)
HSVhsv(287, 63%, 68%)
CMYKcmyk(13.9%, 63%, 0%, 32.2%)
CIE-LABlab(42.88, 52.15, -42.80)
CIE-LCHlch(42.88, 67.46, 320.62°)
OKLaboklab(53% 0.1336 -0.1197)
OKLCHoklch(53% 0.179 318.1)
XYZxyz(21.7696, 13.0744, 40.9039)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540AD #58AD40
analogous
#5F40AD #9540AD #AD408F
triadic
#9540AD #AD9540 #40AD95
tetradic
#9540AD #AD5F40 #58AD40 #408FAD
square
#9540AD #AD5F40 #58AD40 #408FAD
split-complementary
#9540AD #8FAD40 #40AD5F
monochromatic
#481F54 #6F2F80 #9540AD #B064C6 #C791D6

Accessibility & contrast

On white

5.81
#9540AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9540AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540AD
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540AD#FFFFFF#000000##FFFFFF
##9540AD1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2060B0
Deuteranopia (green-blind)
#4568AA
Tritanopia (blue-blind)
#955371
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9540ad;
/* rgb */ color: rgb(149, 64, 173);
/* oklch */ color: oklch(53.0% 0.179 318.1);
Tailwind
colors: {
  custom: {
    50: '#b77ac6',
    500: '#9540ad',
    950: '#000000',
  },
}
SCSS
$custom: #9540ad;
$custom-light: #b77ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#9540ad",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 286.789,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52996,
    "c": 0.17937,
    "h": 318.1
  },
  "luminance": 0.13073
}

Semantic roles & 50–950 ramp

primary
#9540AD
secondary
#94C287
accent
#D6526F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9540AD

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

Preview Lab → · Contrast checker → · Palette generator →

#9540AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva