#9542BB#9542BB

#9542BB is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.1% C 0.190 H 313.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9542BB
RGBrgb(149, 66, 187)
HSLhsl(281, 48%, 50%)
HSVhsv(281, 65%, 73%)
CMYKcmyk(20.3%, 64.7%, 0%, 26.7%)
CIE-LABlab(44.05, 54.13, -49.15)
CIE-LCHlch(44.05, 73.12, 317.76°)
OKLaboklab(54.12% 0.131 -0.1383)
OKLCHoklch(54.12% 0.19 313.4)
XYZxyz(23.3107, 13.8745, 48.4542)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9542BB #68BB42
analogous
#5942BB #9542BB #BB42A5
triadic
#9542BB #BB9542 #42BB95
tetradic
#9542BB #BB5942 #68BB42 #42A5BB
square
#9542BB #BB5942 #68BB42 #42A5BB
split-complementary
#9542BB #A5BB42 #42BB59
monochromatic
#4D2261 #71328E #9542BB #AF6ECC #C89CDC

Accessibility & contrast

On white

5.56
#9542BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9542BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9542BB#FFFFFF#000000##FFFFFF
##9542BB1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0464BF
Deuteranopia (green-blind)
#3B6AB8
Tritanopia (blue-blind)
#915979
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9542bb;
/* rgb */ color: rgb(149, 66, 187);
/* oklch */ color: oklch(54.1% 0.190 313.4);
Tailwind
colors: {
  custom: {
    50: '#b87cd0',
    500: '#9542bb',
    950: '#000000',
  },
}
SCSS
$custom: #9542bb;
$custom-light: #b87cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9542bb",
  "rgb": {
    "r": 149,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 281.157,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54117,
    "c": 0.19045,
    "h": 313.4
  },
  "luminance": 0.13874
}

Semantic roles & 50–950 ramp

primary
#9542BB
secondary
#A2C891
accent
#D7507B
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9542BB

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

Preview Lab → · Contrast checker → · Palette generator →

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