#A51B96#A51B96

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

Color values

HEX#A51B96
RGBrgb(165, 27, 150)
HSLhsl(307, 72%, 38%)
HSVhsv(307, 84%, 65%)
CMYKcmyk(0%, 83.6%, 9.1%, 35.3%)
CIE-LABlab(39.56, 64.77, -34.12)
CIE-LCHlch(39.56, 73.21, 332.22°)
OKLaboklab(50.7% 0.1876 -0.0938)
OKLCHoklch(50.7% 0.21 333.4)
XYZxyz(21.4142, 10.9871, 29.8412)
Luminance0.1099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51B96 #1BA52A
analogous
#6F1BA5 #A51B96 #A51B51
triadic
#A51B96 #96A51B #1B96A5
tetradic
#A51B96 #A56F1B #1BA52A #1B51A5
square
#A51B96 #A56F1B #1BA52A #1B51A5
split-complementary
#A51B96 #51A51B #1BA56F
monochromatic
#3C0A36 #701266 #A51B96 #DA24C6 #E357D4

Accessibility & contrast

On white

6.57
#A51B96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A51B96
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51B96#FFFFFF#000000##FFFFFF
##A51B961.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135199
Deuteranopia (green-blind)
#4F6493
Tritanopia (blue-blind)
#AD2D5A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a51b96;
/* rgb */ color: rgb(165, 27, 150);
/* oklch */ color: oklch(50.7% 0.210 333.4);
Tailwind
colors: {
  custom: {
    50: '#c46bb5',
    500: '#a51b96',
    950: '#000000',
  },
}
SCSS
$custom: #a51b96;
$custom-light: #c46bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#a51b96",
  "rgb": {
    "r": 165,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 306.522,
    "s": 71.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50699,
    "c": 0.20977,
    "h": 333.4
  },
  "luminance": 0.10985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A51B96

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

Preview Lab → · Contrast checker → · Palette generator →

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