#A542BD#A542BD

#A542BD is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.3% C 0.199 H 319.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#A542BD
RGBrgb(165, 66, 189)
HSLhsl(288, 48%, 50%)
HSVhsv(288, 65%, 74%)
CMYKcmyk(12.7%, 65.1%, 0%, 25.9%)
CIE-LABlab(46.41, 58.26, -46.43)
CIE-LCHlch(46.41, 74.50, 321.45°)
OKLaboklab(56.32% 0.1507 -0.1298)
OKLCHoklch(56.32% 0.199 319.2)
XYZxyz(26.6494, 15.5711, 49.7360)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542BD #5ABD42
analogous
#6842BD #A542BD #BD4297
triadic
#A542BD #BDA542 #42BDA5
tetradic
#A542BD #BD6842 #5ABD42 #4297BD
square
#A542BD #BD6842 #5ABD42 #4297BD
split-complementary
#A542BD #97BD42 #42BD68
monochromatic
#562262 #7D3290 #A542BD #BB6FCD #D09DDD

Accessibility & contrast

On white

5.10
#A542BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#A542BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542BD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542BD#FFFFFF#000000##FFFFFF
##A542BD1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67C1
Deuteranopia (green-blind)
#4A71BA
Tritanopia (blue-blind)
#A5577A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a542bd;
/* rgb */ color: rgb(165, 66, 189);
/* oklch */ color: oklch(56.3% 0.199 319.2);
Tailwind
colors: {
  custom: {
    50: '#c37dd1',
    500: '#a542bd',
    950: '#000000',
  },
}
SCSS
$custom: #a542bd;
$custom-light: #c37dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a542bd",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 288.293,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.56317,
    "c": 0.19888,
    "h": 319.2
  },
  "luminance": 0.1557
}

Semantic roles & 50–950 ramp

primary
#A542BD
secondary
#9DC992
accent
#D8506A
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A542BD

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

Preview Lab → · Contrast checker → · Palette generator →

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