#9540AC#9540AC

#9540AC is a mid, vivid purple. Relative luminance 0.130; OKLCH L 52.9% C 0.178 H 318.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#9540AC
RGBrgb(149, 64, 172)
HSLhsl(287, 46%, 46%)
HSVhsv(287, 63%, 67%)
CMYKcmyk(13.4%, 62.8%, 0%, 32.5%)
CIE-LABlab(42.82, 51.95, -42.30)
CIE-LCHlch(42.82, 66.99, 320.84°)
OKLaboklab(52.94% 0.1336 -0.1182)
OKLCHoklch(52.94% 0.178 318.5)
XYZxyz(21.6732, 13.0358, 40.3963)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540AC #57AC40
analogous
#5F40AC #9540AC #AC408D
triadic
#9540AC #AC9540 #40AC95
tetradic
#9540AC #AC5F40 #57AC40 #408DAC
square
#9540AC #AC5F40 #57AC40 #408DAC
split-complementary
#9540AC #8DAC40 #40AC5F
monochromatic
#481F53 #6E2F7F #9540AC #B164C5 #C791D6

Accessibility & contrast

On white

5.82
#9540AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9540AC#FFFFFF#000000##FFFFFF
##9540AC1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215FAF
Deuteranopia (green-blind)
#4668A9
Tritanopia (blue-blind)
#955270
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9540ac;
/* rgb */ color: rgb(149, 64, 172);
/* oklch */ color: oklch(52.9% 0.178 318.5);
Tailwind
colors: {
  custom: {
    50: '#b77ac5',
    500: '#9540ac',
    950: '#000000',
  },
}
SCSS
$custom: #9540ac;
$custom-light: #b77ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#9540ac",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 287.222,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52935,
    "c": 0.1784,
    "h": 318.5
  },
  "luminance": 0.13035
}

Semantic roles & 50–950 ramp

primary
#9540AC
secondary
#93C187
accent
#D5526E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9540AC

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

Preview Lab → · Contrast checker → · Palette generator →

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