#A22F7E#A22F7E

#A22F7E is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.5% C 0.172 H 342.9°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#A22F7E
RGBrgb(162, 47, 126)
HSLhsl(319, 55%, 41%)
HSVhsv(319, 71%, 64%)
CMYKcmyk(0%, 71%, 22.2%, 36.5%)
CIE-LABlab(39.95, 54.64, -18.83)
CIE-LCHlch(39.95, 57.80, 340.98°)
OKLaboklab(50.51% 0.1642 -0.0504)
OKLCHoklch(50.51% 0.172 342.9)
XYZxyz(19.6834, 11.2227, 20.8642)
Luminance0.1122 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22F7E #2FA253
analogous
#8C2FA2 #A22F7E #A22F44
triadic
#A22F7E #7EA22F #2F7EA2
tetradic
#A22F7E #A28C2F #2FA253 #2F44A2
square
#A22F7E #A28C2F #2FA253 #2F44A2
split-complementary
#A22F7E #44A22F #2FA28C
monochromatic
#431334 #732159 #A22F7E #C945A0 #D775B8

Accessibility & contrast

On white

6.47
#A22F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A22F7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22F7E
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22F7E#FFFFFF#000000##FFFFFF
##A22F7E1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5280
Deuteranopia (green-blind)
#5D657B
Tritanopia (blue-blind)
#AC2F52
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a22f7e;
/* rgb */ color: rgb(162, 47, 126);
/* oklch */ color: oklch(50.5% 0.172 342.9);
Tailwind
colors: {
  custom: {
    50: '#c171a3',
    500: '#a22f7e',
    950: '#000000',
  },
}
SCSS
$custom: #a22f7e;
$custom-light: #c171a3;
$custom-dark: #000000;
JSON
{
  "hex": "#a22f7e",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 318.783,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50505,
    "c": 0.17178,
    "h": 342.9
  },
  "luminance": 0.11221
}

Semantic roles & 50–950 ramp

primary
#A22F7E
secondary
#6EBF87
accent
#DE7849
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A22F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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