#A542D2#A542D2

#A542D2 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.6% C 0.219 H 313.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#A542D2
RGBrgb(165, 66, 210)
HSLhsl(281, 62%, 54%)
HSVhsv(281, 69%, 82%)
CMYKcmyk(21.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(47.69, 62.46, -56.52)
CIE-LCHlch(47.69, 84.24, 317.86°)
OKLaboklab(57.65% 0.1496 -0.1594)
OKLCHoklch(57.65% 0.219 313.2)
XYZxyz(29.0961, 16.5498, 62.6220)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542D2 #6FD242
analogous
#5D42D2 #A542D2 #D242B7
triadic
#A542D2 #D2A542 #42D2A5
tetradic
#A542D2 #D25D42 #6FD242 #42B7D2
square
#A542D2 #D25D42 #6FD242 #42B7D2
split-complementary
#A542D2 #B7D242 #42D25D
monochromatic
#5F1E7C #8429AD #A542D2 #BD73DE #D4A5EA

Accessibility & contrast

On white

4.87
#A542D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#A542D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542D2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542D2#FFFFFF#000000##FFFFFF
##A542D21.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#3773CF
Tritanopia (blue-blind)
#A06085
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a542d2;
/* rgb */ color: rgb(165, 66, 210);
/* oklch */ color: oklch(57.6% 0.219 313.2);
Tailwind
colors: {
  custom: {
    50: '#c47ee0',
    500: '#a542d2',
    950: '#000000',
  },
}
SCSS
$custom: #a542d2;
$custom-light: #c47ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#a542d2",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 281.25,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57647,
    "c": 0.21856,
    "h": 313.2
  },
  "luminance": 0.16549
}

Semantic roles & 50–950 ramp

primary
#A542D2
secondary
#ACD799
accent
#E54376
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A542D2

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

Preview Lab → · Contrast checker → · Palette generator →

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