#A542AE#A542AE

#A542AE is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.4% C 0.185 H 324.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#A542AE
RGBrgb(165, 66, 174)
HSLhsl(295, 45%, 47%)
HSVhsv(295, 62%, 68%)
CMYKcmyk(5.2%, 62.1%, 0%, 31.8%)
CIE-LABlab(45.57, 55.42, -38.97)
CIE-LCHlch(45.57, 67.75, 324.89°)
OKLaboklab(55.44% 0.1504 -0.1081)
OKLCHoklch(55.44% 0.185 324.3)
XYZxyz(25.1046, 14.9532, 41.6001)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A542AE #4BAE42
analogous
#6F42AE #A542AE #AE4281
triadic
#A542AE #AEA542 #42AEA5
tetradic
#A542AE #AE6F42 #4BAE42 #4281AE
square
#A542AE #AE6F42 #4BAE42 #4281AE
split-complementary
#A542AE #81AE42 #42AE6F
monochromatic
#512055 #7B3182 #A542AE #BE68C6 #D194D6

Accessibility & contrast

On white

5.26
#A542AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#A542AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A542AE
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A542AE#FFFFFF#000000##FFFFFF
##A542AE1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F64B1
Deuteranopia (green-blind)
#5470AB
Tritanopia (blue-blind)
#A85272
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a542ae;
/* rgb */ color: rgb(165, 66, 174);
/* oklch */ color: oklch(55.4% 0.185 324.3);
Tailwind
colors: {
  custom: {
    50: '#c37dc6',
    500: '#a542ae',
    950: '#000000',
  },
}
SCSS
$custom: #a542ae;
$custom-light: #c37dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#a542ae",
  "rgb": {
    "r": 165,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 295,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55441,
    "c": 0.1852,
    "h": 324.3
  },
  "luminance": 0.14952
}

Semantic roles & 50–950 ramp

primary
#A542AE
secondary
#8FC28A
accent
#D5535E
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A542AE

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

Preview Lab → · Contrast checker → · Palette generator →

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