#AF2A86#AF2A86

#AF2A86 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.5% C 0.191 H 343.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AF2A86
RGBrgb(175, 42, 134)
HSLhsl(318, 61%, 43%)
HSVhsv(318, 76%, 69%)
CMYKcmyk(0%, 76%, 23.4%, 31.4%)
CIE-LABlab(41.99, 60.77, -20.43)
CIE-LCHlch(41.99, 64.11, 341.42°)
OKLaboklab(52.53% 0.1833 -0.0546)
OKLCHoklch(52.53% 0.191 343.4)
XYZxyz(22.8111, 12.4935, 23.7598)
Luminance0.1249 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A86 #2AAF53
analogous
#952AAF #AF2A86 #AF2A44
triadic
#AF2A86 #86AF2A #2A86AF
tetradic
#AF2A86 #AF952A #2AAF53 #2A44AF
square
#AF2A86 #AF952A #2AAF53 #2A44AF
split-complementary
#AF2A86 #44AF2A #2AAF95
monochromatic
#4C123A #7E1E60 #AF2A86 #D244A6 #DE75BE

Accessibility & contrast

On white

6.00
#AF2A86 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF2A86 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A86
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A86#FFFFFF#000000##FFFFFF
##AF2A861.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395588
Deuteranopia (green-blind)
#626B83
Tritanopia (blue-blind)
#BA2A55
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2a86;
/* rgb */ color: rgb(175, 42, 134);
/* oklch */ color: oklch(52.5% 0.191 343.4);
Tailwind
colors: {
  custom: {
    50: '#cb71a9',
    500: '#af2a86',
    950: '#000000',
  },
}
SCSS
$custom: #af2a86;
$custom-light: #cb71a9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a86",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 318.496,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52529,
    "c": 0.19131,
    "h": 343.4
  },
  "luminance": 0.12491
}

Semantic roles & 50–950 ramp

primary
#AF2A86
secondary
#6FC68A
accent
#E47543
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2A86

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

Preview Lab → · Contrast checker → · Palette generator →

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