#A22F7D#A22F7D

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

Color values

HEX#A22F7D
RGBrgb(162, 47, 125)
HSLhsl(319, 55%, 41%)
HSVhsv(319, 71%, 64%)
CMYKcmyk(0%, 71%, 22.8%, 36.5%)
CIE-LABlab(39.91, 54.50, -18.28)
CIE-LCHlch(39.91, 57.49, 341.46°)
OKLaboklab(50.46% 0.164 -0.0488)
OKLCHoklch(50.46% 0.171 343.4)
XYZxyz(19.6192, 11.1971, 20.5261)
Luminance0.1119 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22F7D #2FA254
analogous
#8D2FA2 #A22F7D #A22F43
triadic
#A22F7D #7DA22F #2F7DA2
tetradic
#A22F7D #A28D2F #2FA254 #2F43A2
square
#A22F7D #A28D2F #2FA254 #2F43A2
split-complementary
#A22F7D #43A22F #2FA28D
monochromatic
#431334 #732158 #A22F7D #C9459F #D775B7

Accessibility & contrast

On white

6.48
#A22F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A22F7D
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22F7D#FFFFFF#000000##FFFFFF
##A22F7D1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a22f7d;
/* rgb */ color: rgb(162, 47, 125);
/* oklch */ color: oklch(50.5% 0.171 343.4);
Tailwind
colors: {
  custom: {
    50: '#c171a2',
    500: '#a22f7d',
    950: '#000000',
  },
}
SCSS
$custom: #a22f7d;
$custom-light: #c171a2;
$custom-dark: #000000;
JSON
{
  "hex": "#a22f7d",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 319.304,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50459,
    "c": 0.17114,
    "h": 343.4
  },
  "luminance": 0.11195
}

Semantic roles & 50–950 ramp

primary
#A22F7D
secondary
#6EBF88
accent
#DE7949
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A22F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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