#AF2A78#AF2A78

#AF2A78 is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.9% C 0.183 H 349.6°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AF2A78
RGBrgb(175, 42, 120)
HSLhsl(325, 61%, 43%)
HSVhsv(325, 76%, 69%)
CMYKcmyk(0%, 76%, 31.4%, 31.4%)
CIE-LABlab(41.42, 59.02, -12.67)
CIE-LCHlch(41.42, 60.37, 347.88°)
OKLaboklab(51.93% 0.1804 -0.0331)
OKLCHoklch(51.93% 0.183 349.6)
XYZxyz(21.8985, 12.1285, 18.9535)
Luminance0.1213 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A78 #2AAF61
analogous
#A32AAF #AF2A78 #AF2A36
triadic
#AF2A78 #78AF2A #2A78AF
tetradic
#AF2A78 #AFA32A #2AAF61 #2A36AF
square
#AF2A78 #AFA32A #2AAF61 #2A36AF
split-complementary
#AF2A78 #36AF2A #2AAFA3
monochromatic
#4C1234 #7E1E56 #AF2A78 #D24497 #DE75B3

Accessibility & contrast

On white

6.13
#AF2A78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF2A78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A78
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A78#FFFFFF#000000##FFFFFF
##AF2A781.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40537A
Deuteranopia (green-blind)
#676A75
Tritanopia (blue-blind)
#BC224D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2a78;
/* rgb */ color: rgb(175, 42, 120);
/* oklch */ color: oklch(51.9% 0.183 349.6);
Tailwind
colors: {
  custom: {
    50: '#cb719f',
    500: '#af2a78',
    950: '#000000',
  },
}
SCSS
$custom: #af2a78;
$custom-light: #cb719f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a78",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 324.812,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51928,
    "c": 0.18341,
    "h": 349.6
  },
  "luminance": 0.12126
}

Semantic roles & 50–950 ramp

primary
#AF2A78
secondary
#6FC693
accent
#E48643
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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