#A5318B#A5318B

#A5318B is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.8% C 0.180 H 338.2°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#A5318B
RGBrgb(165, 49, 139)
HSLhsl(313, 54%, 42%)
HSVhsv(313, 70%, 65%)
CMYKcmyk(0%, 70.3%, 15.8%, 35.3%)
CIE-LABlab(41.31, 56.54, -24.67)
CIE-LCHlch(41.31, 61.69, 336.43°)
OKLaboklab(51.78% 0.1672 -0.0668)
OKLCHoklch(51.78% 0.18 338.2)
XYZxyz(21.2760, 12.0620, 25.6288)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5318B #31A54B
analogous
#8531A5 #A5318B #A53151
triadic
#A5318B #8BA531 #318BA5
tetradic
#A5318B #A58531 #31A54B #3151A5
square
#A5318B #A58531 #31A54B #3151A5
split-complementary
#A5318B #51A531 #31A585
monochromatic
#47153B #762363 #A5318B #C94AAD #D779C2

Accessibility & contrast

On white

6.15
#A5318B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#A5318B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5318B
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5318B#FFFFFF#000000##FFFFFF
##A5318B1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568E
Deuteranopia (green-blind)
#5B6888
Tritanopia (blue-blind)
#AE365A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a5318b;
/* rgb */ color: rgb(165, 49, 139);
/* oklch */ color: oklch(51.8% 0.180 338.2);
Tailwind
colors: {
  custom: {
    50: '#c373ad',
    500: '#a5318b',
    950: '#000000',
  },
}
SCSS
$custom: #a5318b;
$custom-light: #c373ad;
$custom-dark: #000000;
JSON
{
  "hex": "#a5318b",
  "rgb": {
    "r": 165,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 313.448,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51783,
    "c": 0.18002,
    "h": 338.2
  },
  "luminance": 0.1206
}

Semantic roles & 50–950 ramp

primary
#A5318B
secondary
#72C084
accent
#DE6B4A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A5318B

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

Preview Lab → · Contrast checker → · Palette generator →

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