#A51DA6#A51DA6

#A51DA6 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.8% C 0.220 H 327.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#A51DA6
RGBrgb(165, 29, 166)
HSLhsl(300, 70%, 38%)
HSVhsv(300, 83%, 65%)
CMYKcmyk(0.6%, 82.5%, 0%, 34.9%)
CIE-LABlab(40.63, 66.77, -42.07)
CIE-LCHlch(40.63, 78.92, 327.78°)
OKLaboklab(51.75% 0.186 -0.1169)
OKLCHoklch(51.75% 0.22 327.9)
XYZxyz(22.8391, 11.6330, 37.1115)
Luminance0.1163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51DA6 #1EA61D
analogous
#601DA6 #A51DA6 #A61D62
triadic
#A51DA6 #A6A51D #1DA6A5
tetradic
#A51DA6 #A6601D #1EA61D #1D62A6
square
#A51DA6 #A6601D #1EA61D #1D62A6
split-complementary
#A51DA6 #62A61D #1DA660
monochromatic
#3D0B3E #711472 #A51DA6 #D827D9 #E15BE2

Accessibility & contrast

On white

6.31
#A51DA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#A51DA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51DA6
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51DA6#FFFFFF#000000##FFFFFF
##A51DA61.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#4666A3
Tritanopia (blue-blind)
#AA3764
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a51da6;
/* rgb */ color: rgb(165, 29, 166);
/* oklch */ color: oklch(51.8% 0.220 327.9);
Tailwind
colors: {
  custom: {
    50: '#c46dc1',
    500: '#a51da6',
    950: '#000000',
  },
}
SCSS
$custom: #a51da6;
$custom-light: #c46dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a51da6",
  "rgb": {
    "r": 165,
    "g": 29,
    "b": 166
  },
  "hsl": {
    "h": 299.562,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.51751,
    "c": 0.21964,
    "h": 327.9
  },
  "luminance": 0.11631
}

Semantic roles & 50–950 ramp

primary
#A51DA6
secondary
#59C659
accent
#ED3B3C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A51DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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