#A51A8F#A51A8F

#A51A8F is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.206 H 336.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#A51A8F
RGBrgb(165, 26, 143)
HSLhsl(309, 73%, 37%)
HSVhsv(309, 84%, 65%)
CMYKcmyk(0%, 84.2%, 13.3%, 35.3%)
CIE-LABlab(39.11, 63.98, -30.56)
CIE-LCHlch(39.11, 70.90, 334.47°)
OKLaboklab(50.26% 0.1881 -0.0835)
OKLCHoklch(50.26% 0.206 336.1)
XYZxyz(20.8448, 10.7233, 26.9533)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51A8F #1AA530
analogous
#751AA5 #A51A8F #A51A4A
triadic
#A51A8F #8FA51A #1A8FA5
tetradic
#A51A8F #A5751A #1AA530 #1A4AA5
square
#A51A8F #A5751A #1AA530 #1A4AA5
split-complementary
#A51A8F #4AA51A #1AA575
monochromatic
#3B0933 #701261 #A51A8F #DA22BD #E455CE

Accessibility & contrast

On white

6.68
#A51A8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#A51A8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A51A8F
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51A8F#FFFFFF#000000##FFFFFF
##A51A8F1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4F92
Deuteranopia (green-blind)
#52638C
Tritanopia (blue-blind)
#AE2756
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a51a8f;
/* rgb */ color: rgb(165, 26, 143);
/* oklch */ color: oklch(50.3% 0.206 336.1);
Tailwind
colors: {
  custom: {
    50: '#c46bb0',
    500: '#a51a8f',
    950: '#000000',
  },
}
SCSS
$custom: #a51a8f;
$custom-light: #c46bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#a51a8f",
  "rgb": {
    "r": 165,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 309.496,
    "s": 72.775,
    "l": 37.451
  },
  "oklch": {
    "l": 0.50259,
    "c": 0.20578,
    "h": 336.1
  },
  "luminance": 0.10721
}

Semantic roles & 50–950 ramp

primary
#A51A8F
secondary
#54C766
accent
#EF5538
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130810
muted
#827A7F

Preview Lab

Preview with #A51A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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