#9540AE#9540AE

#9540AE is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.1% C 0.180 H 317.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9540AE
RGBrgb(149, 64, 174)
HSLhsl(286, 46%, 47%)
HSVhsv(286, 63%, 68%)
CMYKcmyk(14.4%, 63.2%, 0%, 31.8%)
CIE-LABlab(42.93, 52.35, -43.30)
CIE-LCHlch(42.93, 67.94, 320.41°)
OKLaboklab(53.06% 0.1336 -0.1211)
OKLCHoklch(53.06% 0.18 317.8)
XYZxyz(21.8667, 13.1132, 41.4155)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540AE #59AE40
analogous
#5E40AE #9540AE #AE4090
triadic
#9540AE #AE9540 #40AE95
tetradic
#9540AE #AE5E40 #59AE40 #4090AE
square
#9540AE #AE5E40 #59AE40 #4090AE
split-complementary
#9540AE #90AE40 #40AE5E
monochromatic
#481F55 #6F3081 #9540AE #B065C6 #C792D7

Accessibility & contrast

On white

5.80
#9540AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#9540AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9540AE#FFFFFF#000000##FFFFFF
##9540AE1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E60B1
Deuteranopia (green-blind)
#4468AB
Tritanopia (blue-blind)
#945371
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9540ae;
/* rgb */ color: rgb(149, 64, 174);
/* oklch */ color: oklch(53.1% 0.180 317.8);
Tailwind
colors: {
  custom: {
    50: '#b77ac7',
    500: '#9540ae',
    950: '#000000',
  },
}
SCSS
$custom: #9540ae;
$custom-light: #b77ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#9540ae",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 286.364,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53057,
    "c": 0.18035,
    "h": 317.8
  },
  "luminance": 0.13112
}

Semantic roles & 50–950 ramp

primary
#9540AE
secondary
#95C288
accent
#D65270
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9540AE

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

Preview Lab → · Contrast checker → · Palette generator →

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