#AF2F87#AF2F87

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

Color values

HEX#AF2F87
RGBrgb(175, 47, 135)
HSLhsl(319, 58%, 44%)
HSVhsv(319, 73%, 69%)
CMYKcmyk(0%, 73.1%, 22.9%, 31.4%)
CIE-LABlab(42.61, 59.26, -20.08)
CIE-LCHlch(42.61, 62.57, 341.28°)
OKLaboklab(52.99% 0.1785 -0.0537)
OKLCHoklch(52.99% 0.186 343.3)
XYZxyz(23.0697, 12.8986, 24.1917)
Luminance0.1290 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F87 #2FAF57
analogous
#972FAF #AF2F87 #AF2F47
triadic
#AF2F87 #87AF2F #2F87AF
tetradic
#AF2F87 #AF972F #2FAF57 #2F47AF
square
#AF2F87 #AF972F #2FAF57 #2F47AF
split-complementary
#AF2F87 #47AF2F #2FAF97
monochromatic
#4F153D #7F2262 #AF2F87 #CF4CA6 #DC7CBE

Accessibility & contrast

On white

5.87
#AF2F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AF2F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F87
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F87#FFFFFF#000000##FFFFFF
##AF2F871.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5789
Deuteranopia (green-blind)
#646C84
Tritanopia (blue-blind)
#BA2F57
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2f87;
/* rgb */ color: rgb(175, 47, 135);
/* oklch */ color: oklch(53.0% 0.186 343.3);
Tailwind
colors: {
  custom: {
    50: '#cb73aa',
    500: '#af2f87',
    950: '#000000',
  },
}
SCSS
$custom: #af2f87;
$custom-light: #cb73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f87",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 318.75,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52993,
    "c": 0.1864,
    "h": 343.3
  },
  "luminance": 0.12896
}

Semantic roles & 50–950 ramp

primary
#AF2F87
secondary
#75C48E
accent
#E17747
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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