#A5218B#A5218B

#A5218B is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.5% C 0.197 H 337.7°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#A5218B
RGBrgb(165, 33, 139)
HSLhsl(312, 67%, 39%)
HSVhsv(312, 80%, 65%)
CMYKcmyk(0%, 80%, 15.8%, 35.3%)
CIE-LABlab(39.50, 61.70, -27.50)
CIE-LCHlch(39.50, 67.55, 335.98°)
OKLaboklab(50.47% 0.1826 -0.0748)
OKLCHoklch(50.47% 0.197 337.7)
XYZxyz(20.7216, 10.9532, 25.4440)
Luminance0.1095 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5218B #21A53B
analogous
#7D21A5 #A5218B #A52149
triadic
#A5218B #8BA521 #218BA5
tetradic
#A5218B #A57D21 #21A53B #2149A5
square
#A5218B #A57D21 #21A53B #2149A5
split-complementary
#A5218B #49A521 #21A57D
monochromatic
#3F0D35 #721760 #A5218B #D52EB4 #DF61C7

Accessibility & contrast

On white

6.58
#A5218B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#A5218B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5218B
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5218B#FFFFFF#000000##FFFFFF
##A5218B1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27508E
Deuteranopia (green-blind)
#566488
Tritanopia (blue-blind)
#AE2A55
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a5218b;
/* rgb */ color: rgb(165, 33, 139);
/* oklch */ color: oklch(50.5% 0.197 337.7);
Tailwind
colors: {
  custom: {
    50: '#c46dad',
    500: '#a5218b',
    950: '#000000',
  },
}
SCSS
$custom: #a5218b;
$custom-light: #c46dad;
$custom-dark: #000000;
JSON
{
  "hex": "#a5218b",
  "rgb": {
    "r": 165,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 311.818,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50473,
    "c": 0.19736,
    "h": 337.7
  },
  "luminance": 0.10951
}

Semantic roles & 50–950 ramp

primary
#A5218B
secondary
#5EC472
accent
#EA603E
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5218B

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

Preview Lab → · Contrast checker → · Palette generator →

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