#A5217B#A5217B

#A5217B is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.7% C 0.187 H 344.5°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#A5217B
RGBrgb(165, 33, 123)
HSLhsl(319, 67%, 39%)
HSVhsv(319, 80%, 65%)
CMYKcmyk(0%, 80%, 25.5%, 35.3%)
CIE-LABlab(38.76, 59.56, -18.77)
CIE-LCHlch(38.76, 62.44, 342.51°)
OKLaboklab(49.7% 0.1805 -0.0501)
OKLCHoklch(49.7% 0.187 344.5)
XYZxyz(19.6369, 10.5193, 19.7313)
Luminance0.1052 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5217B #21A54B
analogous
#8D21A5 #A5217B #A52139
triadic
#A5217B #7BA521 #217BA5
tetradic
#A5217B #A58D21 #21A54B #2139A5
square
#A5217B #A58D21 #21A54B #2139A5
split-complementary
#A5217B #39A521 #21A58D
monochromatic
#3F0D2F #721755 #A5217B #D52EA0 #DF61B7

Accessibility & contrast

On white

6.77
#A5217B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#A5217B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5217B
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5217B#FFFFFF#000000##FFFFFF
##A5217B1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334D7D
Deuteranopia (green-blind)
#5C6378
Tritanopia (blue-blind)
#B01F4C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a5217b;
/* rgb */ color: rgb(165, 33, 123);
/* oklch */ color: oklch(49.7% 0.187 344.5);
Tailwind
colors: {
  custom: {
    50: '#c46ca1',
    500: '#a5217b',
    950: '#000000',
  },
}
SCSS
$custom: #a5217b;
$custom-light: #c46ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#a5217b",
  "rgb": {
    "r": 165,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 319.091,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.49696,
    "c": 0.1873,
    "h": 344.5
  },
  "luminance": 0.10517
}

Semantic roles & 50–950 ramp

primary
#A5217B
secondary
#5EC47E
accent
#EA753E
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080F
muted
#827A7E

Preview Lab

Preview with #A5217B

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

Preview Lab → · Contrast checker → · Palette generator →

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