#A51FA6#A51FA6

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

Color values

HEX#A51FA6
RGBrgb(165, 31, 166)
HSLhsl(300, 69%, 39%)
HSVhsv(300, 81%, 65%)
CMYKcmyk(0.6%, 81.3%, 0%, 34.9%)
CIE-LABlab(40.79, 66.29, -41.81)
CIE-LCHlch(40.79, 78.38, 327.76°)
OKLaboklab(51.87% 0.1846 -0.1161)
OKLCHoklch(51.87% 0.218 327.8)
XYZxyz(22.8897, 11.7342, 37.1283)
Luminance0.1173 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51FA6 #20A61F
analogous
#611FA6 #A51FA6 #A61F63
triadic
#A51FA6 #A6A51F #1FA6A5
tetradic
#A51FA6 #A6611F #20A61F #1F63A6
square
#A51FA6 #A6611F #20A61F #1F63A6
split-complementary
#A51FA6 #63A61F #1FA661
monochromatic
#3E0C3F #721572 #A51FA6 #D62BD7 #E05EE1

Accessibility & contrast

On white

6.28
#A51FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A51FA6
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51FA6#FFFFFF#000000##FFFFFF
##A51FA61.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a51fa6;
/* rgb */ color: rgb(165, 31, 166);
/* oklch */ color: oklch(51.9% 0.218 327.8);
Tailwind
colors: {
  custom: {
    50: '#c46dc1',
    500: '#a51fa6',
    950: '#000000',
  },
}
SCSS
$custom: #a51fa6;
$custom-light: #c46dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a51fa6",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 299.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.51867,
    "c": 0.21809,
    "h": 327.8
  },
  "luminance": 0.11732
}

Semantic roles & 50–950 ramp

primary
#A51FA6
secondary
#5CC55B
accent
#EB3C3E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A51FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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