#A51F97#A51F97

#A51F97 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.0% C 0.207 H 333.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#A51F97
RGBrgb(165, 31, 151)
HSLhsl(306, 68%, 38%)
HSVhsv(306, 81%, 65%)
CMYKcmyk(0%, 81.2%, 8.5%, 35.3%)
CIE-LABlab(39.94, 63.96, -34.12)
CIE-LCHlch(39.94, 72.50, 331.92°)
OKLaboklab(50.99% 0.1849 -0.0938)
OKLCHoklch(50.99% 0.207 333.1)
XYZxyz(21.5931, 11.2156, 30.2997)
Luminance0.1121 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F97 #1FA52D
analogous
#701FA5 #A51F97 #A51F54
triadic
#A51F97 #97A51F #1F97A5
tetradic
#A51F97 #A5701F #1FA52D #1F54A5
square
#A51F97 #A5701F #1FA52D #1F54A5
split-complementary
#A51F97 #54A51F #1FA570
monochromatic
#3E0C39 #711568 #A51F97 #D72AC5 #E15ED3

Accessibility & contrast

On white

6.48
#A51F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A51F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51F97
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F97#FFFFFF#000000##FFFFFF
##A51F971.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17529A
Deuteranopia (green-blind)
#506594
Tritanopia (blue-blind)
#AD2F5B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a51f97;
/* rgb */ color: rgb(165, 31, 151);
/* oklch */ color: oklch(51.0% 0.207 333.1);
Tailwind
colors: {
  custom: {
    50: '#c46db6',
    500: '#a51f97',
    950: '#000000',
  },
}
SCSS
$custom: #a51f97;
$custom-light: #c46db6;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f97",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 306.269,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50989,
    "c": 0.20731,
    "h": 333.1
  },
  "luminance": 0.11214
}

Semantic roles & 50–950 ramp

primary
#A51F97
secondary
#5BC566
accent
#EB4F3D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A51F97

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

Preview Lab → · Contrast checker → · Palette generator →

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