#A545A2#A545A2

#A545A2 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.2% C 0.170 H 328.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#A545A2
RGBrgb(165, 69, 162)
HSLhsl(302, 41%, 46%)
HSVhsv(302, 58%, 65%)
CMYKcmyk(0%, 58.2%, 1.8%, 35.3%)
CIE-LABlab(45.45, 51.89, -32.06)
CIE-LCHlch(45.45, 60.99, 328.29°)
OKLaboklab(55.15% 0.1456 -0.0881)
OKLCHoklch(55.15% 0.17 328.8)
XYZxyz(24.1665, 14.8658, 35.7719)
Luminance0.1486 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A545A2 #45A548
analogous
#7845A5 #A545A2 #A54572
triadic
#A545A2 #A2A545 #45A2A5
tetradic
#A545A2 #A57845 #45A548 #4572A5
square
#A545A2 #A57845 #45A548 #4572A5
split-complementary
#A545A2 #72A545 #45A578
monochromatic
#4F214D #7A3378 #A545A2 #C068BD #D293D0

Accessibility & contrast

On white

5.29
#A545A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#A545A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A545A2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A545A2#FFFFFF#000000##FFFFFF
##A545A21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#5C709F
Tritanopia (blue-blind)
#AA506D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a545a2;
/* rgb */ color: rgb(165, 69, 162);
/* oklch */ color: oklch(55.2% 0.170 328.8);
Tailwind
colors: {
  custom: {
    50: '#c27ebe',
    500: '#a545a2',
    950: '#000000',
  },
}
SCSS
$custom: #a545a2;
$custom-light: #c27ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#a545a2",
  "rgb": {
    "r": 165,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 301.875,
    "s": 41.026,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55154,
    "c": 0.17019,
    "h": 328.8
  },
  "luminance": 0.14864
}

Semantic roles & 50–950 ramp

primary
#A545A2
secondary
#88BD8A
accent
#D15B57
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A545A2

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

Preview Lab → · Contrast checker → · Palette generator →

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