#9542AA#9542AA

#9542AA is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.1% C 0.174 H 319.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9542AA
RGBrgb(149, 66, 170)
HSLhsl(288, 44%, 46%)
HSVhsv(288, 61%, 67%)
CMYKcmyk(12.4%, 61.2%, 0%, 33.3%)
CIE-LABlab(43.05, 50.60, -40.75)
CIE-LCHlch(43.05, 64.97, 321.15°)
OKLaboklab(53.07% 0.1311 -0.1137)
OKLCHoklch(53.07% 0.174 319)
XYZxyz(21.5974, 13.1892, 39.4305)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542AA #57AA42
analogous
#6142AA #9542AA #AA428B
triadic
#9542AA #AA9542 #42AA95
tetradic
#9542AA #AA6142 #57AA42 #428BAA
square
#9542AA #AA6142 #57AA42 #428BAA
split-complementary
#9542AA #8BAA42 #42AA61
monochromatic
#482052 #6E317E #9542AA #B166C3 #C792D5

Accessibility & contrast

On white

5.77
#9542AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9542AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9542AA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9542AA#FFFFFF#000000##FFFFFF
##9542AA1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2860AD
Deuteranopia (green-blind)
#4869A7
Tritanopia (blue-blind)
#955370
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9542aa;
/* rgb */ color: rgb(149, 66, 170);
/* oklch */ color: oklch(53.1% 0.174 319.0);
Tailwind
colors: {
  custom: {
    50: '#b77bc4',
    500: '#9542aa',
    950: '#000000',
  },
}
SCSS
$custom: #9542aa;
$custom-light: #b77bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#9542aa",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 287.885,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.53065,
    "c": 0.17351,
    "h": 319
  },
  "luminance": 0.13188
}

Semantic roles & 50–950 ramp

primary
#9542AA
secondary
#93C088
accent
#D4546E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A12
muted
#817C81

Preview Lab

Preview with #9542AA

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

Preview Lab → · Contrast checker → · Palette generator →

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