#A2217F#A2217F

#A2217F is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.4% C 0.188 H 341.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#A2217F
RGBrgb(162, 33, 127)
HSLhsl(316, 66%, 38%)
HSVhsv(316, 80%, 64%)
CMYKcmyk(0%, 79.6%, 21.6%, 36.5%)
CIE-LABlab(38.38, 59.36, -21.88)
CIE-LCHlch(38.38, 63.26, 339.76°)
OKLaboklab(49.38% 0.1784 -0.0589)
OKLCHoklch(49.38% 0.188 341.7)
XYZxyz(19.2756, 10.3034, 21.0482)
Luminance0.1030 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2217F #21A244
analogous
#8421A2 #A2217F #A2213E
triadic
#A2217F #7FA221 #217FA2
tetradic
#A2217F #A28421 #21A244 #213EA2
square
#A2217F #A28421 #21A244 #213EA2
split-complementary
#A2217F #3EA221 #21A284
monochromatic
#3C0C2F #6F1757 #A2217F #D42CA6 #DE5FBC

Accessibility & contrast

On white

6.86
#A2217F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#A2217F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2217F
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2217F#FFFFFF#000000##FFFFFF
##A2217F1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4D81
Deuteranopia (green-blind)
#58627C
Tritanopia (blue-blind)
#AC234E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #a2217f;
/* rgb */ color: rgb(162, 33, 127);
/* oklch */ color: oklch(49.4% 0.188 341.7);
Tailwind
colors: {
  custom: {
    50: '#c26ca4',
    500: '#a2217f',
    950: '#000000',
  },
}
SCSS
$custom: #a2217f;
$custom-light: #c26ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#a2217f",
  "rgb": {
    "r": 162,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 316.279,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.49379,
    "c": 0.18787,
    "h": 341.7
  },
  "luminance": 0.10301
}

Semantic roles & 50–950 ramp

primary
#A2217F
secondary
#5CC378
accent
#E96D3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #A2217F

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

Preview Lab → · Contrast checker → · Palette generator →

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