#AF2A87#AF2A87

#AF2A87 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.6% C 0.192 H 343.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AF2A87
RGBrgb(175, 42, 135)
HSLhsl(318, 61%, 43%)
HSVhsv(318, 76%, 69%)
CMYKcmyk(0%, 76%, 22.9%, 31.4%)
CIE-LABlab(42.03, 60.90, -20.97)
CIE-LCHlch(42.03, 64.41, 341.00°)
OKLaboklab(52.58% 0.1835 -0.0562)
OKLCHoklch(52.58% 0.192 343)
XYZxyz(22.8812, 12.5216, 24.1289)
Luminance0.1252 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A87 #2AAF52
analogous
#942AAF #AF2A87 #AF2A45
triadic
#AF2A87 #87AF2A #2A87AF
tetradic
#AF2A87 #AF942A #2AAF52 #2A45AF
square
#AF2A87 #AF942A #2AAF52 #2A45AF
split-complementary
#AF2A87 #45AF2A #2AAF94
monochromatic
#4C123B #7E1E61 #AF2A87 #D244A7 #DE75BF

Accessibility & contrast

On white

5.99
#AF2A87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2A87
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A87#FFFFFF#000000##FFFFFF
##AF2A871.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385589
Deuteranopia (green-blind)
#626B84
Tritanopia (blue-blind)
#BA2B55
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2a87;
/* rgb */ color: rgb(175, 42, 135);
/* oklch */ color: oklch(52.6% 0.192 343.0);
Tailwind
colors: {
  custom: {
    50: '#cb71aa',
    500: '#af2a87',
    950: '#000000',
  },
}
SCSS
$custom: #af2a87;
$custom-light: #cb71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a87",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 318.045,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52575,
    "c": 0.19191,
    "h": 343
  },
  "luminance": 0.12519
}

Semantic roles & 50–950 ramp

primary
#AF2A87
secondary
#6FC689
accent
#E47443
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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