#A51FA9#A51FA9

#A51FA9 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 52.1% C 0.220 H 326.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A51FA9
RGBrgb(165, 31, 169)
HSLhsl(298, 69%, 39%)
HSVhsv(298, 82%, 66%)
CMYKcmyk(2.4%, 81.7%, 0%, 33.7%)
CIE-LABlab(40.97, 66.78, -43.32)
CIE-LCHlch(40.97, 79.60, 327.03°)
OKLaboklab(52.05% 0.1844 -0.1205)
OKLCHoklch(52.05% 0.22 326.8)
XYZxyz(23.1681, 11.8456, 38.5946)
Luminance0.1184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51FA9 #23A91F
analogous
#601FA9 #A51FA9 #A91F68
triadic
#A51FA9 #A9A51F #1FA9A5
tetradic
#A51FA9 #A9601F #23A91F #1F68A9
square
#A51FA9 #A9601F #23A91F #1F68A9
split-complementary
#A51FA9 #68A91F #1FA960
monochromatic
#400C42 #731675 #A51FA9 #D32DD8 #DE60E2

Accessibility & contrast

On white

6.23
#A51FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A51FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51FA9
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51FA9#FFFFFF#000000##FFFFFF
##A51FA91.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#4566A6
Tritanopia (blue-blind)
#AA3A66
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a51fa9;
/* rgb */ color: rgb(165, 31, 169);
/* oklch */ color: oklch(52.1% 0.220 326.8);
Tailwind
colors: {
  custom: {
    50: '#c46dc3',
    500: '#a51fa9',
    950: '#000000',
  },
}
SCSS
$custom: #a51fa9;
$custom-light: #c46dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#a51fa9",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 298.261,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.52051,
    "c": 0.22031,
    "h": 326.8
  },
  "luminance": 0.11844
}

Semantic roles & 50–950 ramp

primary
#A51FA9
secondary
#60C75D
accent
#EC3C41
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A51FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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