#A5317D#A5317D

#A5317D is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.1% C 0.171 H 344.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#A5317D
RGBrgb(165, 49, 125)
HSLhsl(321, 54%, 42%)
HSVhsv(321, 70%, 65%)
CMYKcmyk(0%, 70.3%, 24.2%, 35.3%)
CIE-LABlab(40.70, 54.56, -17.02)
CIE-LCHlch(40.70, 57.16, 342.67°)
OKLaboklab(51.14% 0.1647 -0.0453)
OKLCHoklch(51.14% 0.171 344.6)
XYZxyz(20.3178, 11.6787, 20.5823)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5317D #31A559
analogous
#9331A5 #A5317D #A53143
triadic
#A5317D #7DA531 #317DA5
tetradic
#A5317D #A59331 #31A559 #3143A5
square
#A5317D #A59331 #31A559 #3143A5
split-complementary
#A5317D #43A531 #31A593
monochromatic
#471536 #762359 #A5317D #C94A9D #D779B7

Accessibility & contrast

On white

6.30
#A5317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A5317D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5317D
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5317D#FFFFFF#000000##FFFFFF
##A5317D1.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E547F
Deuteranopia (green-blind)
#60677A
Tritanopia (blue-blind)
#B03052
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a5317d;
/* rgb */ color: rgb(165, 49, 125);
/* oklch */ color: oklch(51.1% 0.171 344.6);
Tailwind
colors: {
  custom: {
    50: '#c373a2',
    500: '#a5317d',
    950: '#000000',
  },
}
SCSS
$custom: #a5317d;
$custom-light: #c373a2;
$custom-dark: #000000;
JSON
{
  "hex": "#a5317d",
  "rgb": {
    "r": 165,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 320.69,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51135,
    "c": 0.17078,
    "h": 344.6
  },
  "luminance": 0.11677
}

Semantic roles & 50–950 ramp

primary
#A5317D
secondary
#72C08D
accent
#DE7D4A
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13090F
muted
#827B7F

Preview Lab

Preview with #A5317D

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

Preview Lab → · Contrast checker → · Palette generator →

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