#A51E97#A51E97

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

Color values

HEX#A51E97
RGBrgb(165, 30, 151)
HSLhsl(306, 69%, 38%)
HSVhsv(306, 82%, 65%)
CMYKcmyk(0%, 81.8%, 8.5%, 35.3%)
CIE-LABlab(39.86, 64.21, -34.26)
CIE-LCHlch(39.86, 72.78, 331.92°)
OKLaboklab(50.93% 0.1856 -0.0942)
OKLCHoklch(50.93% 0.208 333.1)
XYZxyz(21.5674, 11.1642, 30.2912)
Luminance0.1116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51E97 #1EA52C
analogous
#6F1EA5 #A51E97 #A51E53
triadic
#A51E97 #97A51E #1E97A5
tetradic
#A51E97 #A56F1E #1EA52C #1E53A5
square
#A51E97 #A56F1E #1EA52C #1E53A5
split-complementary
#A51E97 #53A51E #1EA56F
monochromatic
#3D0B38 #711568 #A51E97 #D828C6 #E15CD4

Accessibility & contrast

On white

6.50
#A51E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#A51E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51E97
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51E97#FFFFFF#000000##FFFFFF
##A51E971.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15529A
Deuteranopia (green-blind)
#4F6594
Tritanopia (blue-blind)
#AD2F5B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a51e97;
/* rgb */ color: rgb(165, 30, 151);
/* oklch */ color: oklch(50.9% 0.208 333.1);
Tailwind
colors: {
  custom: {
    50: '#c46cb6',
    500: '#a51e97',
    950: '#000000',
  },
}
SCSS
$custom: #a51e97;
$custom-light: #c46cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#a51e97",
  "rgb": {
    "r": 165,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 306.222,
    "s": 69.231,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50928,
    "c": 0.20812,
    "h": 333.1
  },
  "luminance": 0.11162
}

Semantic roles & 50–950 ramp

primary
#A51E97
secondary
#59C565
accent
#EC4E3C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A51E97

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

Preview Lab → · Contrast checker → · Palette generator →

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