#AF2879#AF2879

#AF2879 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.8% C 0.186 H 349.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#AF2879
RGBrgb(175, 40, 121)
HSLhsl(324, 63%, 42%)
HSVhsv(324, 77%, 69%)
CMYKcmyk(0%, 77.1%, 30.9%, 31.4%)
CIE-LABlab(41.24, 59.76, -13.56)
CIE-LCHlch(41.24, 61.28, 347.21°)
OKLaboklab(51.81% 0.1826 -0.0356)
OKLCHoklch(51.81% 0.186 349)
XYZxyz(21.8904, 12.0146, 19.2517)
Luminance0.1201 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2879 #28AF5E
analogous
#A228AF #AF2879 #AF2835
triadic
#AF2879 #79AF28 #2879AF
tetradic
#AF2879 #AFA228 #28AF5E #2835AF
square
#AF2879 #AFA228 #28AF5E #2835AF
split-complementary
#AF2879 #35AF28 #28AFA2
monochromatic
#4B1134 #7D1D57 #AF2879 #D44199 #DF73B4

Accessibility & contrast

On white

6.17
#AF2879 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#AF2879 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2879
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2879#FFFFFF#000000##FFFFFF
##AF28791.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E527B
Deuteranopia (green-blind)
#666A76
Tritanopia (blue-blind)
#BC204D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2879;
/* rgb */ color: rgb(175, 40, 121);
/* oklch */ color: oklch(51.8% 0.186 349.0);
Tailwind
colors: {
  custom: {
    50: '#cb709f',
    500: '#af2879',
    950: '#000000',
  },
}
SCSS
$custom: #af2879;
$custom-light: #cb709f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2879",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 324,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51809,
    "c": 0.18601,
    "h": 349
  },
  "luminance": 0.12012
}

Semantic roles & 50–950 ramp

primary
#AF2879
secondary
#6DC690
accent
#E68442
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2879

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

Preview Lab → · Contrast checker → · Palette generator →

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