#AF2D87#AF2D87

#AF2D87 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.8% C 0.189 H 343.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AF2D87
RGBrgb(175, 45, 135)
HSLhsl(318, 59%, 43%)
HSVhsv(318, 74%, 69%)
CMYKcmyk(0%, 74.3%, 22.9%, 31.4%)
CIE-LABlab(42.37, 59.93, -20.45)
CIE-LCHlch(42.37, 63.33, 341.16°)
OKLaboklab(52.82% 0.1805 -0.0547)
OKLCHoklch(52.82% 0.189 343.1)
XYZxyz(22.9916, 12.7424, 24.1657)
Luminance0.1274 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D87 #2DAF55
analogous
#962DAF #AF2D87 #AF2D46
triadic
#AF2D87 #87AF2D #2D87AF
tetradic
#AF2D87 #AF962D #2DAF55 #2D46AF
square
#AF2D87 #AF962D #2DAF55 #2D46AF
split-complementary
#AF2D87 #46AF2D #2DAF96
monochromatic
#4E143C #7E2061 #AF2D87 #D049A7 #DD7ABE

Accessibility & contrast

On white

5.92
#AF2D87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AF2D87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D87
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D87#FFFFFF#000000##FFFFFF
##AF2D871.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2d87;
/* rgb */ color: rgb(175, 45, 135);
/* oklch */ color: oklch(52.8% 0.189 343.1);
Tailwind
colors: {
  custom: {
    50: '#cb73aa',
    500: '#af2d87',
    950: '#000000',
  },
}
SCSS
$custom: #af2d87;
$custom-light: #cb73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d87",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 318.462,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52821,
    "c": 0.18866,
    "h": 343.1
  },
  "luminance": 0.1274
}

Semantic roles & 50–950 ramp

primary
#AF2D87
secondary
#73C58C
accent
#E27646
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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