#A51B97#A51B97

#A51B97 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.8% C 0.210 H 333.1°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#A51B97
RGBrgb(165, 27, 151)
HSLhsl(306, 72%, 38%)
HSVhsv(306, 84%, 65%)
CMYKcmyk(0%, 83.6%, 8.5%, 35.3%)
CIE-LABlab(39.61, 64.92, -34.64)
CIE-LCHlch(39.61, 73.58, 331.91°)
OKLaboklab(50.76% 0.1877 -0.0953)
OKLCHoklch(50.76% 0.21 333.1)
XYZxyz(21.4951, 11.0195, 30.2671)
Luminance0.1102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51B97 #1BA529
analogous
#6E1BA5 #A51B97 #A51B52
triadic
#A51B97 #97A51B #1B97A5
tetradic
#A51B97 #A56E1B #1BA529 #1B52A5
square
#A51B97 #A56E1B #1BA529 #1B52A5
split-complementary
#A51B97 #52A51B #1BA56E
monochromatic
#3C0A37 #701267 #A51B97 #DA24C7 #E357D5

Accessibility & contrast

On white

6.56
#A51B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#A51B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51B97
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51B97#FFFFFF#000000##FFFFFF
##A51B971.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11519A
Deuteranopia (green-blind)
#4E6494
Tritanopia (blue-blind)
#AD2D5A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a51b97;
/* rgb */ color: rgb(165, 27, 151);
/* oklch */ color: oklch(50.8% 0.210 333.1);
Tailwind
colors: {
  custom: {
    50: '#c46bb6',
    500: '#a51b97',
    950: '#000000',
  },
}
SCSS
$custom: #a51b97;
$custom-light: #c46bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#a51b97",
  "rgb": {
    "r": 165,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 306.087,
    "s": 71.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50755,
    "c": 0.21045,
    "h": 333.1
  },
  "luminance": 0.11018
}

Semantic roles & 50–950 ramp

primary
#A51B97
secondary
#55C761
accent
#EF4C39
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A51B97

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

Preview Lab → · Contrast checker → · Palette generator →

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