#AF2A7E#AF2A7E

#AF2A7E is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.2% C 0.187 H 346.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AF2A7E
RGBrgb(175, 42, 126)
HSLhsl(322, 61%, 43%)
HSVhsv(322, 76%, 69%)
CMYKcmyk(0%, 76%, 28%, 31.4%)
CIE-LABlab(41.66, 59.75, -16.02)
CIE-LCHlch(41.66, 61.86, 344.99°)
OKLaboklab(52.18% 0.1818 -0.0424)
OKLCHoklch(52.18% 0.187 346.9)
XYZxyz(22.2741, 12.2787, 20.9316)
Luminance0.1228 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A7E #2AAF5B
analogous
#9D2AAF #AF2A7E #AF2A3C
triadic
#AF2A7E #7EAF2A #2A7EAF
tetradic
#AF2A7E #AF9D2A #2AAF5B #2A3CAF
square
#AF2A7E #AF9D2A #2AAF5B #2A3CAF
split-complementary
#AF2A7E #3CAF2A #2AAF9D
monochromatic
#4C1237 #7E1E5A #AF2A7E #D2449E #DE75B7

Accessibility & contrast

On white

6.08
#AF2A7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AF2A7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A7E
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A7E#FFFFFF#000000##FFFFFF
##AF2A7E1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5480
Deuteranopia (green-blind)
#656A7B
Tritanopia (blue-blind)
#BB2551
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2a7e;
/* rgb */ color: rgb(175, 42, 126);
/* oklch */ color: oklch(52.2% 0.187 346.9);
Tailwind
colors: {
  custom: {
    50: '#cb71a3',
    500: '#af2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #af2a7e;
$custom-light: #cb71a3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a7e",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 322.105,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52177,
    "c": 0.18664,
    "h": 346.9
  },
  "luminance": 0.12276
}

Semantic roles & 50–950 ramp

primary
#AF2A7E
secondary
#6FC68F
accent
#E47F43
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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