#A542BA#A542BA

#A542BA is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.196 H 320.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#A542BA
RGBrgb(165, 66, 186)
HSLhsl(290, 48%, 49%)
HSVhsv(290, 65%, 73%)
CMYKcmyk(11.3%, 64.5%, 0%, 27.1%)
CIE-LABlab(46.23, 57.68, -44.96)
CIE-LCHlch(46.23, 73.13, 322.07°)
OKLaboklab(56.14% 0.1507 -0.1255)
OKLCHoklch(56.14% 0.196 320.2)
XYZxyz(26.3271, 15.4422, 48.0387)
Luminance0.1544 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542BA #57BA42
analogous
#6942BA #A542BA #BA4293
triadic
#A542BA #BAA542 #42BAA5
tetradic
#A542BA #BA6942 #57BA42 #4293BA
square
#A542BA #BA6942 #57BA42 #4293BA
split-complementary
#A542BA #93BA42 #42BA69
monochromatic
#552260 #7D328D #A542BA #BB6ECB #D09BDB

Accessibility & contrast

On white

5.14
#A542BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#A542BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542BA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542BA#FFFFFF#000000##FFFFFF
##A542BA1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#4C71B7
Tritanopia (blue-blind)
#A65678
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a542ba;
/* rgb */ color: rgb(165, 66, 186);
/* oklch */ color: oklch(56.1% 0.196 320.2);
Tailwind
colors: {
  custom: {
    50: '#c37dcf',
    500: '#a542ba',
    950: '#000000',
  },
}
SCSS
$custom: #a542ba;
$custom-light: #c37dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#a542ba",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 289.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56137,
    "c": 0.19611,
    "h": 320.2
  },
  "luminance": 0.15441
}

Semantic roles & 50–950 ramp

primary
#A542BA
secondary
#9AC890
accent
#D75168
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A542BA

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

Preview Lab → · Contrast checker → · Palette generator →

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