#A5318D#A5318D

#A5318D is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.9% C 0.181 H 337.3°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#A5318D
RGBrgb(165, 49, 141)
HSLhsl(312, 54%, 42%)
HSVhsv(312, 70%, 65%)
CMYKcmyk(0%, 70.3%, 14.5%, 35.3%)
CIE-LABlab(41.41, 56.84, -25.74)
CIE-LCHlch(41.41, 62.40, 335.64°)
OKLaboklab(51.88% 0.1674 -0.0699)
OKLCHoklch(51.88% 0.181 337.3)
XYZxyz(21.4235, 12.1210, 26.4054)
Luminance0.1212 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5318D #31A549
analogous
#8331A5 #A5318D #A53153
triadic
#A5318D #8DA531 #318DA5
tetradic
#A5318D #A58331 #31A549 #3153A5
square
#A5318D #A58331 #31A549 #3153A5
split-complementary
#A5318D #53A531 #31A583
monochromatic
#47153C #762365 #A5318D #C94AAF #D779C4

Accessibility & contrast

On white

6.13
#A5318D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#A5318D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5318D
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5318D#FFFFFF#000000##FFFFFF
##A5318D1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355690
Deuteranopia (green-blind)
#5B688A
Tritanopia (blue-blind)
#AE375B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a5318d;
/* rgb */ color: rgb(165, 49, 141);
/* oklch */ color: oklch(51.9% 0.181 337.3);
Tailwind
colors: {
  custom: {
    50: '#c373ae',
    500: '#a5318d',
    950: '#000000',
  },
}
SCSS
$custom: #a5318d;
$custom-light: #c373ae;
$custom-dark: #000000;
JSON
{
  "hex": "#a5318d",
  "rgb": {
    "r": 165,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 312.414,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51881,
    "c": 0.18144,
    "h": 337.3
  },
  "luminance": 0.12119
}

Semantic roles & 50–950 ramp

primary
#A5318D
secondary
#72C082
accent
#DE694A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A5318D

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

Preview Lab → · Contrast checker → · Palette generator →

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