#A51FA7#A51FA7

#A51FA7 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.219 H 327.5°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#A51FA7
RGBrgb(165, 31, 167)
HSLhsl(299, 69%, 39%)
HSVhsv(299, 81%, 65%)
CMYKcmyk(1.2%, 81.4%, 0%, 34.5%)
CIE-LABlab(40.85, 66.45, -42.32)
CIE-LCHlch(40.85, 78.78, 327.51°)
OKLaboklab(51.93% 0.1846 -0.1176)
OKLCHoklch(51.93% 0.219 327.5)
XYZxyz(22.9818, 11.7710, 37.6133)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51FA7 #21A71F
analogous
#611FA7 #A51FA7 #A71F65
triadic
#A51FA7 #A7A51F #1FA7A5
tetradic
#A51FA7 #A7611F #21A71F #1F65A7
square
#A51FA7 #A7611F #21A71F #1F65A7
split-complementary
#A51FA7 #65A71F #1FA761
monochromatic
#3F0C40 #721573 #A51FA7 #D52BD8 #DF5FE1

Accessibility & contrast

On white

6.26
#A51FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#A51FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51FA7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51FA7#FFFFFF#000000##FFFFFF
##A51FA71.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a51fa7;
/* rgb */ color: rgb(165, 31, 167);
/* oklch */ color: oklch(51.9% 0.219 327.5);
Tailwind
colors: {
  custom: {
    50: '#c46dc2',
    500: '#a51fa7',
    950: '#000000',
  },
}
SCSS
$custom: #a51fa7;
$custom-light: #c46dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a51fa7",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 299.118,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.51928,
    "c": 0.21882,
    "h": 327.5
  },
  "luminance": 0.11769
}

Semantic roles & 50–950 ramp

primary
#A51FA7
secondary
#5EC65C
accent
#EC3C3F
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A51FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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