#A2227F#A2227F

#A2227F is a mid, vivid pink. Relative luminance 0.104; OKLCH L 49.5% C 0.187 H 341.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#A2227F
RGBrgb(162, 34, 127)
HSLhsl(316, 65%, 38%)
HSVhsv(316, 79%, 64%)
CMYKcmyk(0%, 79%, 21.6%, 36.5%)
CIE-LABlab(38.48, 59.07, -21.73)
CIE-LCHlch(38.48, 62.94, 339.81°)
OKLaboklab(49.45% 0.1775 -0.0584)
OKLCHoklch(49.45% 0.187 341.8)
XYZxyz(19.3038, 10.3598, 21.0576)
Luminance0.1036 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2227F #22A245
analogous
#8522A2 #A2227F #A2223F
triadic
#A2227F #7FA222 #227FA2
tetradic
#A2227F #A28522 #22A245 #223FA2
square
#A2227F #A28522 #22A245 #223FA2
split-complementary
#A2227F #3FA222 #22A285
monochromatic
#3D0D30 #6F1757 #A2227F #D32EA6 #DE61BC

Accessibility & contrast

On white

6.84
#A2227F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#A2227F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2227F
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2227F#FFFFFF#000000##FFFFFF
##A2227F1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4D81
Deuteranopia (green-blind)
#58627C
Tritanopia (blue-blind)
#AC244F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a2227f;
/* rgb */ color: rgb(162, 34, 127);
/* oklch */ color: oklch(49.5% 0.187 341.8);
Tailwind
colors: {
  custom: {
    50: '#c26ca4',
    500: '#a2227f',
    950: '#000000',
  },
}
SCSS
$custom: #a2227f;
$custom-light: #c26ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#a2227f",
  "rgb": {
    "r": 162,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 316.406,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49451,
    "c": 0.18691,
    "h": 341.8
  },
  "luminance": 0.10358
}

Semantic roles & 50–950 ramp

primary
#A2227F
secondary
#5DC379
accent
#E86E40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #A2227F

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

Preview Lab → · Contrast checker → · Palette generator →

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