#AF2E86#AF2E86

#AF2E86 is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.9% C 0.187 H 343.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AF2E86
RGBrgb(175, 46, 134)
HSLhsl(319, 58%, 43%)
HSVhsv(319, 74%, 69%)
CMYKcmyk(0%, 73.7%, 23.4%, 31.4%)
CIE-LABlab(42.45, 59.47, -19.72)
CIE-LCHlch(42.45, 62.65, 341.65°)
OKLaboklab(52.86% 0.1794 -0.0527)
OKLCHoklch(52.86% 0.187 343.6)
XYZxyz(22.9601, 12.7916, 23.8095)
Luminance0.1279 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E86 #2EAF57
analogous
#972EAF #AF2E86 #AF2E45
triadic
#AF2E86 #86AF2E #2E86AF
tetradic
#AF2E86 #AF972E #2EAF57 #2E45AF
square
#AF2E86 #AF972E #2EAF57 #2E45AF
split-complementary
#AF2E86 #45AF2E #2EAF97
monochromatic
#4E153C #7F2161 #AF2E86 #D04BA5 #DC7BBD

Accessibility & contrast

On white

5.90
#AF2E86 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AF2E86 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E86
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E86#FFFFFF#000000##FFFFFF
##AF2E861.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2e86;
/* rgb */ color: rgb(175, 46, 134);
/* oklch */ color: oklch(52.9% 0.187 343.6);
Tailwind
colors: {
  custom: {
    50: '#cb73a9',
    500: '#af2e86',
    950: '#000000',
  },
}
SCSS
$custom: #af2e86;
$custom-light: #cb73a9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e86",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 319.07,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52861,
    "c": 0.18693,
    "h": 343.6
  },
  "luminance": 0.12789
}

Semantic roles & 50–950 ramp

primary
#AF2E86
secondary
#74C58E
accent
#E27846
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2E86

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

Preview Lab → · Contrast checker → · Palette generator →

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