#A2218C#A2218C

#A2218C is a mid, vivid pink. Relative luminance 0.107; OKLCH L 50.0% C 0.196 H 336.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#A2218C
RGBrgb(162, 33, 140)
HSLhsl(310, 66%, 38%)
HSVhsv(310, 80%, 64%)
CMYKcmyk(0%, 79.6%, 13.6%, 36.5%)
CIE-LABlab(39.01, 61.17, -28.92)
CIE-LCHlch(39.01, 67.66, 334.69°)
OKLaboklab(50.04% 0.1798 -0.0789)
OKLCHoklch(50.04% 0.196 336.3)
XYZxyz(20.1781, 10.6645, 25.8016)
Luminance0.1066 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2218C #21A237
analogous
#7821A2 #A2218C #A2214B
triadic
#A2218C #8CA221 #218CA2
tetradic
#A2218C #A27821 #21A237 #214BA2
square
#A2218C #A27821 #21A237 #214BA2
split-complementary
#A2218C #4BA221 #21A278
monochromatic
#3C0C34 #6F1760 #A2218C #D42CB7 #DE5FC9

Accessibility & contrast

On white

6.70
#A2218C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#A2218C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2218C
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2218C#FFFFFF#000000##FFFFFF
##A2218C1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24508F
Deuteranopia (green-blind)
#536389
Tritanopia (blue-blind)
#AB2B55
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2218c;
/* rgb */ color: rgb(162, 33, 140);
/* oklch */ color: oklch(50.0% 0.196 336.3);
Tailwind
colors: {
  custom: {
    50: '#c16cae',
    500: '#a2218c',
    950: '#000000',
  },
}
SCSS
$custom: #a2218c;
$custom-light: #c16cae;
$custom-dark: #000000;
JSON
{
  "hex": "#a2218c",
  "rgb": {
    "r": 162,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 310.233,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50035,
    "c": 0.19639,
    "h": 336.3
  },
  "luminance": 0.10663
}

Semantic roles & 50–950 ramp

primary
#A2218C
secondary
#5CC36D
accent
#E95C3F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2218C

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

Preview Lab → · Contrast checker → · Palette generator →

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