#A545A8#A545A8

#A545A8 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.5% C 0.175 H 326.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#A545A8
RGBrgb(165, 69, 168)
HSLhsl(298, 42%, 46%)
HSVhsv(298, 59%, 66%)
CMYKcmyk(1.8%, 58.9%, 0%, 34.1%)
CIE-LABlab(45.75, 52.97, -35.14)
CIE-LCHlch(45.75, 63.56, 326.44°)
OKLaboklab(55.47% 0.1462 -0.097)
OKLCHoklch(55.47% 0.175 326.4)
XYZxyz(24.7126, 15.0842, 38.6481)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A545A8 #48A845
analogous
#7445A8 #A545A8 #A8457A
triadic
#A545A8 #A8A545 #45A8A5
tetradic
#A545A8 #A87445 #48A845 #457AA8
square
#A545A8 #A87445 #48A845 #457AA8
split-complementary
#A545A8 #7AA845 #45A874
monochromatic
#502151 #7A337D #A545A8 #BF69C1 #D194D3

Accessibility & contrast

On white

5.23
#A545A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#A545A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A545A8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A545A8#FFFFFF#000000##FFFFFF
##A545A81.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3864AB
Deuteranopia (green-blind)
#5971A5
Tritanopia (blue-blind)
#A95270
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a545a8;
/* rgb */ color: rgb(165, 69, 168);
/* oklch */ color: oklch(55.5% 0.175 326.4);
Tailwind
colors: {
  custom: {
    50: '#c27ec2',
    500: '#a545a8',
    950: '#000000',
  },
}
SCSS
$custom: #a545a8;
$custom-light: #c27ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#a545a8",
  "rgb": {
    "r": 165,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 298.182,
    "s": 41.772,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5547,
    "c": 0.17547,
    "h": 326.4
  },
  "luminance": 0.15083
}

Semantic roles & 50–950 ramp

primary
#A545A8
secondary
#8CBF8A
accent
#D2565A
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130A12
muted
#827C81

Preview Lab

Preview with #A545A8

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

Preview Lab → · Contrast checker → · Palette generator →

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