#AF2F86#AF2F86

#AF2F86 is a mid, vivid pink. Relative luminance 0.129; OKLCH L 52.9% C 0.186 H 343.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AF2F86
RGBrgb(175, 47, 134)
HSLhsl(319, 58%, 44%)
HSVhsv(319, 73%, 69%)
CMYKcmyk(0%, 73.1%, 23.4%, 31.4%)
CIE-LABlab(42.57, 59.13, -19.54)
CIE-LCHlch(42.57, 62.27, 341.72°)
OKLaboklab(52.95% 0.1783 -0.0522)
OKLCHoklch(52.95% 0.186 343.7)
XYZxyz(22.9996, 12.8706, 23.8227)
Luminance0.1287 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F86 #2FAF58
analogous
#982FAF #AF2F86 #AF2F46
triadic
#AF2F86 #86AF2F #2F86AF
tetradic
#AF2F86 #AF982F #2FAF58 #2F46AF
square
#AF2F86 #AF982F #2FAF58 #2F46AF
split-complementary
#AF2F86 #46AF2F #2FAF98
monochromatic
#4F153C #7F2261 #AF2F86 #CF4CA5 #DC7CBD

Accessibility & contrast

On white

5.88
#AF2F86 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AF2F86 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F86
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F86#FFFFFF#000000##FFFFFF
##AF2F861.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5788
Deuteranopia (green-blind)
#646C83
Tritanopia (blue-blind)
#BA2F56
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2f86;
/* rgb */ color: rgb(175, 47, 134);
/* oklch */ color: oklch(52.9% 0.186 343.7);
Tailwind
colors: {
  custom: {
    50: '#cb73a9',
    500: '#af2f86',
    950: '#000000',
  },
}
SCSS
$custom: #af2f86;
$custom-light: #cb73a9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f86",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 319.219,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52949,
    "c": 0.18579,
    "h": 343.7
  },
  "luminance": 0.12868
}

Semantic roles & 50–950 ramp

primary
#AF2F86
secondary
#75C48F
accent
#E17847
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F86

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

Preview Lab → · Contrast checker → · Palette generator →

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