#AF2E87#AF2E87

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

Color values

HEX#AF2E87
RGBrgb(175, 46, 135)
HSLhsl(319, 58%, 43%)
HSVhsv(319, 74%, 69%)
CMYKcmyk(0%, 73.7%, 22.9%, 31.4%)
CIE-LABlab(42.49, 59.60, -20.27)
CIE-LCHlch(42.49, 62.95, 341.22°)
OKLaboklab(52.91% 0.1795 -0.0542)
OKLCHoklch(52.91% 0.188 343.2)
XYZxyz(23.0302, 12.8196, 24.1785)
Luminance0.1282 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E87 #2EAF56
analogous
#962EAF #AF2E87 #AF2E46
triadic
#AF2E87 #87AF2E #2E87AF
tetradic
#AF2E87 #AF962E #2EAF56 #2E46AF
square
#AF2E87 #AF962E #2EAF56 #2E46AF
split-complementary
#AF2E87 #46AF2E #2EAF96
monochromatic
#4E153C #7F2162 #AF2E87 #D04BA6 #DC7BBE

Accessibility & contrast

On white

5.89
#AF2E87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2E87
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E87#FFFFFF#000000##FFFFFF
##AF2E871.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5789
Deuteranopia (green-blind)
#636C84
Tritanopia (blue-blind)
#BA2E57
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2e87;
/* rgb */ color: rgb(175, 46, 135);
/* oklch */ color: oklch(52.9% 0.188 343.2);
Tailwind
colors: {
  custom: {
    50: '#cb73aa',
    500: '#af2e87',
    950: '#000000',
  },
}
SCSS
$custom: #af2e87;
$custom-light: #cb73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e87",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 318.605,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52906,
    "c": 0.18754,
    "h": 343.2
  },
  "luminance": 0.12817
}

Semantic roles & 50–950 ramp

primary
#AF2E87
secondary
#74C58D
accent
#E27646
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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