#A51DA7#A51DA7

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

Color values

HEX#A51DA7
RGBrgb(165, 29, 167)
HSLhsl(299, 70%, 38%)
HSVhsv(299, 83%, 65%)
CMYKcmyk(1.2%, 82.6%, 0%, 34.5%)
CIE-LABlab(40.69, 66.93, -42.58)
CIE-LCHlch(40.69, 79.32, 327.54°)
OKLaboklab(51.81% 0.1859 -0.1183)
OKLCHoklch(51.81% 0.22 327.5)
XYZxyz(22.9311, 11.6698, 37.5965)
Luminance0.1167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51DA7 #1FA71D
analogous
#601DA7 #A51DA7 #A71D64
triadic
#A51DA7 #A7A51D #1DA7A5
tetradic
#A51DA7 #A7601D #1FA71D #1D64A7
square
#A51DA7 #A7601D #1FA71D #1D64A7
split-complementary
#A51DA7 #64A71D #1DA760
monochromatic
#3E0B3F #711473 #A51DA7 #D728DA #E15CE3

Accessibility & contrast

On white

6.30
#A51DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A51DA7
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51DA7#FFFFFF#000000##FFFFFF
##A51DA71.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#4666A4
Tritanopia (blue-blind)
#AA3864
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a51da7;
/* rgb */ color: rgb(165, 29, 167);
/* oklch */ color: oklch(51.8% 0.220 327.5);
Tailwind
colors: {
  custom: {
    50: '#c46dc2',
    500: '#a51da7',
    950: '#000000',
  },
}
SCSS
$custom: #a51da7;
$custom-light: #c46dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a51da7",
  "rgb": {
    "r": 165,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 299.13,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.51812,
    "c": 0.22036,
    "h": 327.5
  },
  "luminance": 0.11668
}

Semantic roles & 50–950 ramp

primary
#A51DA7
secondary
#5BC759
accent
#ED3B3D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A51DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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