#AF2888#AF2888

#AF2888 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.5% C 0.195 H 342.5°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#AF2888
RGBrgb(175, 40, 136)
HSLhsl(317, 63%, 42%)
HSVhsv(317, 77%, 69%)
CMYKcmyk(0%, 77.1%, 22.3%, 31.4%)
CIE-LABlab(41.86, 61.64, -21.85)
CIE-LCHlch(41.86, 65.40, 340.48°)
OKLaboklab(52.47% 0.1856 -0.0586)
OKLCHoklch(52.47% 0.195 342.5)
XYZxyz(22.8828, 12.4115, 24.4784)
Luminance0.1241 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2888 #28AF4F
analogous
#9228AF #AF2888 #AF2845
triadic
#AF2888 #88AF28 #2888AF
tetradic
#AF2888 #AF9228 #28AF4F #2845AF
square
#AF2888 #AF9228 #28AF4F #2845AF
split-complementary
#AF2888 #45AF28 #28AF92
monochromatic
#4B113B #7D1D61 #AF2888 #D441A9 #DF73C0

Accessibility & contrast

On white

6.03
#AF2888 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AF2888 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2888
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2888#FFFFFF#000000##FFFFFF
##AF28881.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36558B
Deuteranopia (green-blind)
#616B85
Tritanopia (blue-blind)
#BA2955
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2888;
/* rgb */ color: rgb(175, 40, 136);
/* oklch */ color: oklch(52.5% 0.195 342.5);
Tailwind
colors: {
  custom: {
    50: '#cb71ab',
    500: '#af2888',
    950: '#000000',
  },
}
SCSS
$custom: #af2888;
$custom-light: #cb71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#af2888",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 317.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52466,
    "c": 0.19459,
    "h": 342.5
  },
  "luminance": 0.12409
}

Semantic roles & 50–950 ramp

primary
#AF2888
secondary
#6DC687
accent
#E67142
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2888

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

Preview Lab → · Contrast checker → · Palette generator →

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