#A2217E#A2217E

#A2217E is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.3% C 0.187 H 342.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#A2217E
RGBrgb(162, 33, 126)
HSLhsl(317, 66%, 38%)
HSVhsv(317, 80%, 64%)
CMYKcmyk(0%, 79.6%, 22.2%, 36.5%)
CIE-LABlab(38.34, 59.22, -21.33)
CIE-LCHlch(38.34, 62.95, 340.19°)
OKLaboklab(49.33% 0.1783 -0.0573)
OKLCHoklch(49.33% 0.187 342.2)
XYZxyz(19.2107, 10.2775, 20.7067)
Luminance0.1027 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2217E #21A245
analogous
#8521A2 #A2217E #A2213D
triadic
#A2217E #7EA221 #217EA2
tetradic
#A2217E #A28521 #21A245 #213DA2
square
#A2217E #A28521 #21A245 #213DA2
split-complementary
#A2217E #3DA221 #21A285
monochromatic
#3C0C2F #6F1756 #A2217E #D42CA5 #DE5FBB

Accessibility & contrast

On white

6.87
#A2217E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A2217E
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2217E#FFFFFF#000000##FFFFFF
##A2217E1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2217e;
/* rgb */ color: rgb(162, 33, 126);
/* oklch */ color: oklch(49.3% 0.187 342.2);
Tailwind
colors: {
  custom: {
    50: '#c26ca3',
    500: '#a2217e',
    950: '#000000',
  },
}
SCSS
$custom: #a2217e;
$custom-light: #c26ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#a2217e",
  "rgb": {
    "r": 162,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 316.744,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.49331,
    "c": 0.18725,
    "h": 342.2
  },
  "luminance": 0.10275
}

Semantic roles & 50–950 ramp

primary
#A2217E
secondary
#5CC379
accent
#E96E3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #A2217E

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

Preview Lab → · Contrast checker → · Palette generator →

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