#A51F99#A51F99

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

Color values

HEX#A51F99
RGBrgb(165, 31, 153)
HSLhsl(305, 68%, 38%)
HSVhsv(305, 81%, 65%)
CMYKcmyk(0%, 81.2%, 7.3%, 35.3%)
CIE-LABlab(40.05, 64.27, -35.16)
CIE-LCHlch(40.05, 73.26, 331.31°)
OKLaboklab(51.1% 0.1849 -0.0968)
OKLCHoklch(51.1% 0.209 332.4)
XYZxyz(21.7569, 11.2811, 31.1624)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F99 #1FA52B
analogous
#6E1FA5 #A51F99 #A51F56
triadic
#A51F99 #99A51F #1F99A5
tetradic
#A51F99 #A56E1F #1FA52B #1F56A5
square
#A51F99 #A56E1F #1FA52B #1F56A5
split-complementary
#A51F99 #56A51F #1FA56E
monochromatic
#3E0C39 #711569 #A51F99 #D72AC8 #E15ED5

Accessibility & contrast

On white

6.45
#A51F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A51F99
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F99#FFFFFF#000000##FFFFFF
##A51F991.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13539C
Deuteranopia (green-blind)
#4F6596
Tritanopia (blue-blind)
#AC315C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a51f99;
/* rgb */ color: rgb(165, 31, 153);
/* oklch */ color: oklch(51.1% 0.209 332.4);
Tailwind
colors: {
  custom: {
    50: '#c46db7',
    500: '#a51f99',
    950: '#000000',
  },
}
SCSS
$custom: #a51f99;
$custom-light: #c46db7;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f99",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 305.373,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.51102,
    "c": 0.20872,
    "h": 332.4
  },
  "luminance": 0.11279
}

Semantic roles & 50–950 ramp

primary
#A51F99
secondary
#5BC564
accent
#EB4C3D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A51F99

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

Preview Lab → · Contrast checker → · Palette generator →

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