#A542BB#A542BB

#A542BB is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.197 H 319.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#A542BB
RGBrgb(165, 66, 187)
HSLhsl(289, 48%, 50%)
HSVhsv(289, 65%, 73%)
CMYKcmyk(11.8%, 64.7%, 0%, 26.7%)
CIE-LABlab(46.29, 57.87, -45.45)
CIE-LCHlch(46.29, 73.59, 321.86°)
OKLaboklab(56.2% 0.1507 -0.127)
OKLCHoklch(56.2% 0.197 319.9)
XYZxyz(26.4338, 15.4849, 48.6006)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542BB #58BB42
analogous
#6942BB #A542BB #BB4295
triadic
#A542BB #BBA542 #42BBA5
tetradic
#A542BB #BB6942 #58BB42 #4295BB
square
#A542BB #BB6942 #58BB42 #4295BB
split-complementary
#A542BB #95BB42 #42BB69
monochromatic
#552261 #7D328E #A542BB #BB6ECC #D09CDC

Accessibility & contrast

On white

5.13
#A542BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#A542BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542BB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542BB#FFFFFF#000000##FFFFFF
##A542BB1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67BF
Deuteranopia (green-blind)
#4C71B8
Tritanopia (blue-blind)
#A65779
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a542bb;
/* rgb */ color: rgb(165, 66, 187);
/* oklch */ color: oklch(56.2% 0.197 319.9);
Tailwind
colors: {
  custom: {
    50: '#c37dd0',
    500: '#a542bb',
    950: '#000000',
  },
}
SCSS
$custom: #a542bb;
$custom-light: #c37dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a542bb",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 289.091,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56197,
    "c": 0.19704,
    "h": 319.9
  },
  "luminance": 0.15484
}

Semantic roles & 50–950 ramp

primary
#A542BB
secondary
#9BC891
accent
#D75069
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A542BB

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

Preview Lab → · Contrast checker → · Palette generator →

#A542BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva