#9540AA#9540AA

#9540AA is a mid, vivid purple. Relative luminance 0.130; OKLCH L 52.8% C 0.176 H 319.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9540AA
RGBrgb(149, 64, 170)
HSLhsl(288, 45%, 46%)
HSVhsv(288, 62%, 67%)
CMYKcmyk(12.4%, 62.4%, 0%, 33.3%)
CIE-LABlab(42.70, 51.54, -41.30)
CIE-LCHlch(42.70, 66.05, 321.30°)
OKLaboklab(52.82% 0.1336 -0.1153)
OKLCHoklch(52.82% 0.176 319.2)
XYZxyz(21.4826, 12.9596, 39.3923)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540AA #55AA40
analogous
#6040AA #9540AA #AA408A
triadic
#9540AA #AA9540 #40AA95
tetradic
#9540AA #AA6040 #55AA40 #408AAA
square
#9540AA #AA6040 #55AA40 #408AAA
split-complementary
#9540AA #8AAA40 #40AA60
monochromatic
#471F51 #6E2F7E #9540AA #B163C4 #C78FD5

Accessibility & contrast

On white

5.85
#9540AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9540AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9540AA#FFFFFF#000000##FFFFFF
##9540AA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245FAD
Deuteranopia (green-blind)
#4768A7
Tritanopia (blue-blind)
#95526F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9540aa;
/* rgb */ color: rgb(149, 64, 170);
/* oklch */ color: oklch(52.8% 0.176 319.2);
Tailwind
colors: {
  custom: {
    50: '#b77ac4',
    500: '#9540aa',
    950: '#000000',
  },
}
SCSS
$custom: #9540aa;
$custom-light: #b77ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#9540aa",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 288.113,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52815,
    "c": 0.17644,
    "h": 319.2
  },
  "luminance": 0.12959
}

Semantic roles & 50–950 ramp

primary
#9540AA
secondary
#91C086
accent
#D5536D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9540AA

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

Preview Lab → · Contrast checker → · Palette generator →

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