#A22F7F#A22F7F

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

Color values

HEX#A22F7F
RGBrgb(162, 47, 127)
HSLhsl(318, 55%, 41%)
HSVhsv(318, 71%, 64%)
CMYKcmyk(0%, 71%, 21.6%, 36.5%)
CIE-LABlab(40.00, 54.78, -19.38)
CIE-LCHlch(40.00, 58.11, 340.51°)
OKLaboklab(50.55% 0.1644 -0.0519)
OKLCHoklch(50.55% 0.172 342.5)
XYZxyz(19.7482, 11.2487, 21.2057)
Luminance0.1125 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22F7F #2FA252
analogous
#8B2FA2 #A22F7F #A22F45
triadic
#A22F7F #7FA22F #2F7FA2
tetradic
#A22F7F #A28B2F #2FA252 #2F45A2
square
#A22F7F #A28B2F #2FA252 #2F45A2
split-complementary
#A22F7F #45A22F #2FA28B
monochromatic
#431335 #73215A #A22F7F #C945A1 #D775B9

Accessibility & contrast

On white

6.46
#A22F7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#A22F7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22F7F
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22F7F#FFFFFF#000000##FFFFFF
##A22F7F1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#5D657C
Tritanopia (blue-blind)
#AC3053
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a22f7f;
/* rgb */ color: rgb(162, 47, 127);
/* oklch */ color: oklch(50.5% 0.172 342.5);
Tailwind
colors: {
  custom: {
    50: '#c172a4',
    500: '#a22f7f',
    950: '#000000',
  },
}
SCSS
$custom: #a22f7f;
$custom-light: #c172a4;
$custom-dark: #000000;
JSON
{
  "hex": "#a22f7f",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 318.261,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5055,
    "c": 0.17242,
    "h": 342.5
  },
  "luminance": 0.11247
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A22F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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