#A5317C#A5317C

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

Color values

HEX#A5317C
RGBrgb(165, 49, 124)
HSLhsl(321, 54%, 42%)
HSVhsv(321, 70%, 65%)
CMYKcmyk(0%, 70.3%, 24.8%, 35.3%)
CIE-LABlab(40.66, 54.43, -16.47)
CIE-LCHlch(40.66, 56.86, 343.17°)
OKLaboklab(51.09% 0.1644 -0.0438)
OKLCHoklch(51.09% 0.17 345.1)
XYZxyz(20.2542, 11.6533, 20.2475)
Luminance0.1165 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5317C #31A55A
analogous
#9431A5 #A5317C #A53142
triadic
#A5317C #7CA531 #317CA5
tetradic
#A5317C #A59431 #31A55A #3142A5
square
#A5317C #A59431 #31A55A #3142A5
split-complementary
#A5317C #42A531 #31A594
monochromatic
#471535 #762359 #A5317C #C94A9C #D779B6

Accessibility & contrast

On white

6.31
#A5317C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#A5317C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5317C
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5317C#FFFFFF#000000##FFFFFF
##A5317C1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537E
Deuteranopia (green-blind)
#616779
Tritanopia (blue-blind)
#B02F52
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a5317c;
/* rgb */ color: rgb(165, 49, 124);
/* oklch */ color: oklch(51.1% 0.170 345.1);
Tailwind
colors: {
  custom: {
    50: '#c373a2',
    500: '#a5317c',
    950: '#000000',
  },
}
SCSS
$custom: #a5317c;
$custom-light: #c373a2;
$custom-dark: #000000;
JSON
{
  "hex": "#a5317c",
  "rgb": {
    "r": 165,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 321.207,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51092,
    "c": 0.17016,
    "h": 345.1
  },
  "luminance": 0.11651
}

Semantic roles & 50–950 ramp

primary
#A5317C
secondary
#72C08E
accent
#DE7E4A
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13090F
muted
#827B7E

Preview Lab

Preview with #A5317C

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

Preview Lab → · Contrast checker → · Palette generator →

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