#A5318E#A5318E

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

Color values

HEX#A5318E
RGBrgb(165, 49, 142)
HSLhsl(312, 54%, 42%)
HSVhsv(312, 70%, 65%)
CMYKcmyk(0%, 70.3%, 13.9%, 35.3%)
CIE-LABlab(41.45, 56.99, -26.28)
CIE-LCHlch(41.45, 62.76, 335.25°)
OKLaboklab(51.93% 0.1676 -0.0714)
OKLCHoklch(51.93% 0.182 336.9)
XYZxyz(21.4982, 12.1509, 26.7991)
Luminance0.1215 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5318E #31A548
analogous
#8231A5 #A5318E #A53154
triadic
#A5318E #8EA531 #318EA5
tetradic
#A5318E #A58231 #31A548 #3154A5
square
#A5318E #A58231 #31A548 #3154A5
split-complementary
#A5318E #54A531 #31A582
monochromatic
#47153D #762365 #A5318E #C94AB0 #D779C5

Accessibility & contrast

On white

6.12
#A5318E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#A5318E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5318E
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5318E#FFFFFF#000000##FFFFFF
##A5318E1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345691
Deuteranopia (green-blind)
#5A688B
Tritanopia (blue-blind)
#AE385B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a5318e;
/* rgb */ color: rgb(165, 49, 142);
/* oklch */ color: oklch(51.9% 0.182 336.9);
Tailwind
colors: {
  custom: {
    50: '#c373af',
    500: '#a5318e',
    950: '#000000',
  },
}
SCSS
$custom: #a5318e;
$custom-light: #c373af;
$custom-dark: #000000;
JSON
{
  "hex": "#a5318e",
  "rgb": {
    "r": 165,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 311.897,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5193,
    "c": 0.18216,
    "h": 336.9
  },
  "luminance": 0.12149
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A5318E

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

Preview Lab → · Contrast checker → · Palette generator →

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