#AF2878#AF2878

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

Color values

HEX#AF2878
RGBrgb(175, 40, 120)
HSLhsl(324, 63%, 42%)
HSVhsv(324, 77%, 69%)
CMYKcmyk(0%, 77.1%, 31.4%, 31.4%)
CIE-LABlab(41.20, 59.65, -13.00)
CIE-LCHlch(41.20, 61.05, 347.70°)
OKLaboklab(51.77% 0.1823 -0.034)
OKLCHoklch(51.77% 0.185 349.4)
XYZxyz(21.8293, 11.9902, 18.9304)
Luminance0.1199 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2878 #28AF5F
analogous
#A228AF #AF2878 #AF2835
triadic
#AF2878 #78AF28 #2878AF
tetradic
#AF2878 #AFA228 #28AF5F #2835AF
square
#AF2878 #AFA228 #28AF5F #2835AF
split-complementary
#AF2878 #35AF28 #28AFA2
monochromatic
#4B1134 #7D1D56 #AF2878 #D44198 #DF73B3

Accessibility & contrast

On white

6.18
#AF2878 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2878
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2878#FFFFFF#000000##FFFFFF
##AF28781.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F527A
Deuteranopia (green-blind)
#666A75
Tritanopia (blue-blind)
#BC1F4D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2878;
/* rgb */ color: rgb(175, 40, 120);
/* oklch */ color: oklch(51.8% 0.185 349.4);
Tailwind
colors: {
  custom: {
    50: '#cb709f',
    500: '#af2878',
    950: '#000000',
  },
}
SCSS
$custom: #af2878;
$custom-light: #cb709f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2878",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 324.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51768,
    "c": 0.18549,
    "h": 349.4
  },
  "luminance": 0.11988
}

Semantic roles & 50–950 ramp

primary
#AF2878
secondary
#6DC691
accent
#E68542
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2878

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

Preview Lab → · Contrast checker → · Palette generator →

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