#AF2886#AF2886

#AF2886 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.4% C 0.193 H 343.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AF2886
RGBrgb(175, 40, 134)
HSLhsl(318, 63%, 42%)
HSVhsv(318, 77%, 69%)
CMYKcmyk(0%, 77.1%, 23.4%, 31.4%)
CIE-LABlab(41.78, 61.38, -20.76)
CIE-LCHlch(41.78, 64.79, 341.31°)
OKLaboklab(52.37% 0.1852 -0.0556)
OKLCHoklch(52.37% 0.193 343.3)
XYZxyz(22.7419, 12.3552, 23.7368)
Luminance0.1235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2886 #28AF51
analogous
#9528AF #AF2886 #AF2843
triadic
#AF2886 #86AF28 #2886AF
tetradic
#AF2886 #AF9528 #28AF51 #2843AF
square
#AF2886 #AF9528 #28AF51 #2843AF
split-complementary
#AF2886 #43AF28 #28AF95
monochromatic
#4B113A #7D1D60 #AF2886 #D441A7 #DF73BE

Accessibility & contrast

On white

6.05
#AF2886 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AF2886 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2886
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2886#FFFFFF#000000##FFFFFF
##AF28861.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2886;
/* rgb */ color: rgb(175, 40, 134);
/* oklch */ color: oklch(52.4% 0.193 343.3);
Tailwind
colors: {
  custom: {
    50: '#cb71a9',
    500: '#af2886',
    950: '#000000',
  },
}
SCSS
$custom: #af2886;
$custom-light: #cb71a9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2886",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 318.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52373,
    "c": 0.19337,
    "h": 343.3
  },
  "luminance": 0.12353
}

Semantic roles & 50–950 ramp

primary
#AF2886
secondary
#6DC688
accent
#E67442
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2886

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

Preview Lab → · Contrast checker → · Palette generator →

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