#A5218F#A5218F

#A5218F is a mid, highly saturated pink. Relative luminance 0.111; OKLCH L 50.7% C 0.200 H 336.2°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#A5218F
RGBrgb(165, 33, 143)
HSLhsl(310, 67%, 39%)
HSVhsv(310, 80%, 65%)
CMYKcmyk(0%, 80%, 13.3%, 35.3%)
CIE-LABlab(39.70, 62.27, -29.63)
CIE-LCHlch(39.70, 68.96, 334.55°)
OKLaboklab(50.68% 0.183 -0.0809)
OKLCHoklch(50.68% 0.2 336.2)
XYZxyz(21.0192, 11.0722, 27.0114)
Luminance0.1107 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5218F #21A537
analogous
#7921A5 #A5218F #A5214D
triadic
#A5218F #8FA521 #218FA5
tetradic
#A5218F #A57921 #21A537 #214DA5
square
#A5218F #A57921 #21A537 #214DA5
split-complementary
#A5218F #4DA521 #21A579
monochromatic
#3F0D37 #721763 #A5218F #D52EB9 #DF61CA

Accessibility & contrast

On white

6.53
#A5218F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A5218F
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5218F#FFFFFF#000000##FFFFFF
##A5218F1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235192
Deuteranopia (green-blind)
#54648C
Tritanopia (blue-blind)
#AE2C57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a5218f;
/* rgb */ color: rgb(165, 33, 143);
/* oklch */ color: oklch(50.7% 0.200 336.2);
Tailwind
colors: {
  custom: {
    50: '#c46db0',
    500: '#a5218f',
    950: '#000000',
  },
}
SCSS
$custom: #a5218f;
$custom-light: #c46db0;
$custom-dark: #000000;
JSON
{
  "hex": "#a5218f",
  "rgb": {
    "r": 165,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 310,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50682,
    "c": 0.20005,
    "h": 336.2
  },
  "luminance": 0.1107
}

Semantic roles & 50–950 ramp

primary
#A5218F
secondary
#5EC46F
accent
#EA5B3E
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5218F

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

Preview Lab → · Contrast checker → · Palette generator →

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