#A51F9A#A51F9A

#A51F9A is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.2% C 0.209 H 332.0°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#A51F9A
RGBrgb(165, 31, 154)
HSLhsl(305, 68%, 38%)
HSVhsv(305, 81%, 65%)
CMYKcmyk(0%, 81.2%, 6.7%, 35.3%)
CIE-LABlab(40.10, 64.42, -35.68)
CIE-LCHlch(40.10, 73.64, 331.02°)
OKLaboklab(51.16% 0.1849 -0.0983)
OKLCHoklch(51.16% 0.209 332)
XYZxyz(21.8398, 11.3143, 31.5992)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F9A #1FA52A
analogous
#6D1FA5 #A51F9A #A51F57
triadic
#A51F9A #9AA51F #1F9AA5
tetradic
#A51F9A #A56D1F #1FA52A #1F57A5
square
#A51F9A #A56D1F #1FA52A #1F57A5
split-complementary
#A51F9A #57A51F #1FA56D
monochromatic
#3E0C3A #71156A #A51F9A #D72AC9 #E15ED6

Accessibility & contrast

On white

6.44
#A51F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A51F9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51F9A
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F9A#FFFFFF#000000##FFFFFF
##A51F9A1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11539D
Deuteranopia (green-blind)
#4E6597
Tritanopia (blue-blind)
#AC315D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a51f9a;
/* rgb */ color: rgb(165, 31, 154);
/* oklch */ color: oklch(51.2% 0.209 332.0);
Tailwind
colors: {
  custom: {
    50: '#c46db8',
    500: '#a51f9a',
    950: '#000000',
  },
}
SCSS
$custom: #a51f9a;
$custom-light: #c46db8;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f9a",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 304.925,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.51159,
    "c": 0.20942,
    "h": 332
  },
  "luminance": 0.11312
}

Semantic roles & 50–950 ramp

primary
#A51F9A
secondary
#5BC563
accent
#EB4B3D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A51F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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