#A531A2#A531A2

#A531A2 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 53.0% C 0.197 H 329.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#A531A2
RGBrgb(165, 49, 162)
HSLhsl(302, 54%, 42%)
HSVhsv(302, 70%, 65%)
CMYKcmyk(0%, 70.3%, 1.8%, 35.3%)
CIE-LABlab(42.47, 60.17, -36.75)
CIE-LCHlch(42.47, 70.50, 328.58°)
OKLaboklab(52.99% 0.1691 -0.1015)
OKLCHoklch(52.99% 0.197 329)
XYZxyz(23.1367, 12.8063, 35.4287)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A531A2 #31A534
analogous
#6E31A5 #A531A2 #A53168
triadic
#A531A2 #A2A531 #31A2A5
tetradic
#A531A2 #A56E31 #31A534 #3168A5
square
#A531A2 #A56E31 #31A534 #3168A5
split-complementary
#A531A2 #68A531 #31A56E
monochromatic
#471545 #762374 #A531A2 #C94AC6 #D779D5

Accessibility & contrast

On white

5.90
#A531A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#A531A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A531A2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A531A2#FFFFFF#000000##FFFFFF
##A531A21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#516A9F
Tritanopia (blue-blind)
#AB4166
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a531a2;
/* rgb */ color: rgb(165, 49, 162);
/* oklch */ color: oklch(53.0% 0.197 329.0);
Tailwind
colors: {
  custom: {
    50: '#c374be',
    500: '#a531a2',
    950: '#000000',
  },
}
SCSS
$custom: #a531a2;
$custom-light: #c374be;
$custom-dark: #000000;
JSON
{
  "hex": "#a531a2",
  "rgb": {
    "r": 165,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 301.552,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52993,
    "c": 0.19728,
    "h": 329
  },
  "luminance": 0.12805
}

Semantic roles & 50–950 ramp

primary
#A531A2
secondary
#72C074
accent
#DE4E4A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A531A2

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

Preview Lab → · Contrast checker → · Palette generator →

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