#A5218E#A5218E

#A5218E is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.6% C 0.199 H 336.5°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#A5218E
RGBrgb(165, 33, 142)
HSLhsl(310, 67%, 39%)
HSVhsv(310, 80%, 65%)
CMYKcmyk(0%, 80%, 13.9%, 35.3%)
CIE-LABlab(39.65, 62.13, -29.10)
CIE-LCHlch(39.65, 68.60, 334.90°)
OKLaboklab(50.63% 0.1829 -0.0794)
OKLCHoklch(50.63% 0.199 336.5)
XYZxyz(20.9438, 11.0420, 26.6143)
Luminance0.1104 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5218E #21A538
analogous
#7A21A5 #A5218E #A5214C
triadic
#A5218E #8EA521 #218EA5
tetradic
#A5218E #A57A21 #21A538 #214CA5
square
#A5218E #A57A21 #21A538 #214CA5
split-complementary
#A5218E #4CA521 #21A57A
monochromatic
#3F0D36 #721762 #A5218E #D52EB8 #DF61C9

Accessibility & contrast

On white

6.55
#A5218E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#A5218E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5218E
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5218E#FFFFFF#000000##FFFFFF
##A5218E1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245191
Deuteranopia (green-blind)
#54648B
Tritanopia (blue-blind)
#AE2B57
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a5218e;
/* rgb */ color: rgb(165, 33, 142);
/* oklch */ color: oklch(50.6% 0.199 336.5);
Tailwind
colors: {
  custom: {
    50: '#c46daf',
    500: '#a5218e',
    950: '#000000',
  },
}
SCSS
$custom: #a5218e;
$custom-light: #c46daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a5218e",
  "rgb": {
    "r": 165,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 310.455,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50629,
    "c": 0.19937,
    "h": 336.5
  },
  "luminance": 0.1104
}

Semantic roles & 50–950 ramp

primary
#A5218E
secondary
#5EC46F
accent
#EA5C3E
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5218E

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

Preview Lab → · Contrast checker → · Palette generator →

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