#A51CA9#A51CA9

#A51CA9 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.9% C 0.223 H 326.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#A51CA9
RGBrgb(165, 28, 169)
HSLhsl(298, 72%, 39%)
HSVhsv(298, 83%, 66%)
CMYKcmyk(2.4%, 83.4%, 0%, 33.7%)
CIE-LABlab(40.73, 67.48, -43.70)
CIE-LCHlch(40.73, 80.39, 327.07°)
OKLaboklab(51.88% 0.1864 -0.1216)
OKLCHoklch(51.88% 0.223 326.9)
XYZxyz(23.0934, 11.6961, 38.5697)
Luminance0.1169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51CA9 #20A91C
analogous
#5E1CA9 #A51CA9 #A91C66
triadic
#A51CA9 #A9A51C #1CA9A5
tetradic
#A51CA9 #A95E1C #20A91C #1C66A9
square
#A51CA9 #A95E1C #20A91C #1C66A9
split-complementary
#A51CA9 #66A91C #1CA95E
monochromatic
#3E0B40 #721374 #A51CA9 #D627DB #E05BE4

Accessibility & contrast

On white

6.29
#A51CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A51CA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51CA9
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51CA9#FFFFFF#000000##FFFFFF
##A51CA91.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#4466A6
Tritanopia (blue-blind)
#AA3865
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a51ca9;
/* rgb */ color: rgb(165, 28, 169);
/* oklch */ color: oklch(51.9% 0.223 326.9);
Tailwind
colors: {
  custom: {
    50: '#c46dc3',
    500: '#a51ca9',
    950: '#000000',
  },
}
SCSS
$custom: #a51ca9;
$custom-light: #c46dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#a51ca9",
  "rgb": {
    "r": 165,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 298.298,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.51881,
    "c": 0.22255,
    "h": 326.9
  },
  "luminance": 0.11694
}

Semantic roles & 50–950 ramp

primary
#A51CA9
secondary
#5CC859
accent
#EE393F
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A51CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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