#AF2A88#AF2A88

#AF2A88 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.6% C 0.193 H 342.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AF2A88
RGBrgb(175, 42, 136)
HSLhsl(318, 61%, 43%)
HSVhsv(318, 76%, 69%)
CMYKcmyk(0%, 76%, 22.3%, 31.4%)
CIE-LABlab(42.08, 61.03, -21.52)
CIE-LCHlch(42.08, 64.71, 340.58°)
OKLaboklab(52.62% 0.1837 -0.0577)
OKLCHoklch(52.62% 0.193 342.6)
XYZxyz(22.9519, 12.5499, 24.5014)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A88 #2AAF51
analogous
#932AAF #AF2A88 #AF2A46
triadic
#AF2A88 #88AF2A #2A88AF
tetradic
#AF2A88 #AF932A #2AAF51 #2A46AF
square
#AF2A88 #AF932A #2AAF51 #2A46AF
split-complementary
#AF2A88 #46AF2A #2AAF93
monochromatic
#4C123B #7E1E62 #AF2A88 #D244A8 #DE75BF

Accessibility & contrast

On white

5.98
#AF2A88 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF2A88 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A88
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A88#FFFFFF#000000##FFFFFF
##AF2A881.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38558B
Deuteranopia (green-blind)
#626B85
Tritanopia (blue-blind)
#BA2B56
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2a88;
/* rgb */ color: rgb(175, 42, 136);
/* oklch */ color: oklch(52.6% 0.193 342.6);
Tailwind
colors: {
  custom: {
    50: '#cb71ab',
    500: '#af2a88',
    950: '#000000',
  },
}
SCSS
$custom: #af2a88;
$custom-light: #cb71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a88",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 317.594,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52621,
    "c": 0.19253,
    "h": 342.6
  },
  "luminance": 0.12547
}

Semantic roles & 50–950 ramp

primary
#AF2A88
secondary
#6FC689
accent
#E47343
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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