#A2228C#A2228C

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

Color values

HEX#A2228C
RGBrgb(162, 34, 140)
HSLhsl(310, 65%, 38%)
HSVhsv(310, 79%, 64%)
CMYKcmyk(0%, 79%, 13.6%, 36.5%)
CIE-LABlab(39.11, 60.89, -28.77)
CIE-LCHlch(39.11, 67.34, 334.71°)
OKLaboklab(50.11% 0.179 -0.0785)
OKLCHoklch(50.11% 0.195 336.3)
XYZxyz(20.2063, 10.7208, 25.8110)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2228C #22A238
analogous
#7822A2 #A2228C #A2224C
triadic
#A2228C #8CA222 #228CA2
tetradic
#A2228C #A27822 #22A238 #224CA2
square
#A2228C #A27822 #22A238 #224CA2
split-complementary
#A2228C #4CA222 #22A278
monochromatic
#3D0D35 #6F1760 #A2228C #D32EB7 #DE61C8

Accessibility & contrast

On white

6.68
#A2228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#A2228C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2228C
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2228C#FFFFFF#000000##FFFFFF
##A2228C1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2228c;
/* rgb */ color: rgb(162, 34, 140);
/* oklch */ color: oklch(50.1% 0.195 336.3);
Tailwind
colors: {
  custom: {
    50: '#c16dae',
    500: '#a2228c',
    950: '#000000',
  },
}
SCSS
$custom: #a2228c;
$custom-light: #c16dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a2228c",
  "rgb": {
    "r": 162,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 310.313,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50105,
    "c": 0.19546,
    "h": 336.3
  },
  "luminance": 0.10719
}

Semantic roles & 50–950 ramp

primary
#A2228C
secondary
#5DC36F
accent
#E85D40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2228C

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

Preview Lab → · Contrast checker → · Palette generator →

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