#AF2D88#AF2D88

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

Color values

HEX#AF2D88
RGBrgb(175, 45, 136)
HSLhsl(318, 59%, 43%)
HSVhsv(318, 74%, 69%)
CMYKcmyk(0%, 74.3%, 22.3%, 31.4%)
CIE-LABlab(42.42, 60.07, -20.99)
CIE-LCHlch(42.42, 63.63, 340.74°)
OKLaboklab(52.87% 0.1807 -0.0563)
OKLCHoklch(52.87% 0.189 342.7)
XYZxyz(23.0623, 12.7707, 24.5382)
Luminance0.1277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D88 #2DAF54
analogous
#952DAF #AF2D88 #AF2D47
triadic
#AF2D88 #88AF2D #2D88AF
tetradic
#AF2D88 #AF952D #2DAF54 #2D47AF
square
#AF2D88 #AF952D #2DAF54 #2D47AF
split-complementary
#AF2D88 #47AF2D #2DAF95
monochromatic
#4E143C #7E2062 #AF2D88 #D049A8 #DD7ABF

Accessibility & contrast

On white

5.91
#AF2D88 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2D88
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D88#FFFFFF#000000##FFFFFF
##AF2D881.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2d88;
/* rgb */ color: rgb(175, 45, 136);
/* oklch */ color: oklch(52.9% 0.189 342.7);
Tailwind
colors: {
  custom: {
    50: '#cb73ab',
    500: '#af2d88',
    950: '#000000',
  },
}
SCSS
$custom: #af2d88;
$custom-light: #cb73ab;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d88",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 318,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52866,
    "c": 0.18928,
    "h": 342.7
  },
  "luminance": 0.12768
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2D88

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

Preview Lab → · Contrast checker → · Palette generator →

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