#AF2C78#AF2C78

#AF2C78 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.1% C 0.181 H 349.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AF2C78
RGBrgb(175, 44, 120)
HSLhsl(325, 60%, 43%)
HSVhsv(325, 75%, 69%)
CMYKcmyk(0%, 74.9%, 31.4%, 31.4%)
CIE-LABlab(41.65, 58.38, -12.32)
CIE-LCHlch(41.65, 59.66, 348.08°)
OKLaboklab(52.1% 0.1784 -0.0322)
OKLCHoklch(52.1% 0.181 349.8)
XYZxyz(21.9712, 12.2739, 18.9777)
Luminance0.1227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C78 #2CAF63
analogous
#A42CAF #AF2C78 #AF2C36
triadic
#AF2C78 #78AF2C #2C78AF
tetradic
#AF2C78 #AFA42C #2CAF63 #2C36AF
square
#AF2C78 #AFA42C #2CAF63 #2C36AF
split-complementary
#AF2C78 #36AF2C #2CAFA4
monochromatic
#4D1335 #7E2056 #AF2C78 #D14797 #DD78B3

Accessibility & contrast

On white

6.08
#AF2C78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AF2C78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C78
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C78#FFFFFF#000000##FFFFFF
##AF2C781.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41537A
Deuteranopia (green-blind)
#676B75
Tritanopia (blue-blind)
#BC244E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2c78;
/* rgb */ color: rgb(175, 44, 120);
/* oklch */ color: oklch(52.1% 0.181 349.8);
Tailwind
colors: {
  custom: {
    50: '#cb729f',
    500: '#af2c78',
    950: '#000000',
  },
}
SCSS
$custom: #af2c78;
$custom-light: #cb729f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c78",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 325.191,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52095,
    "c": 0.18124,
    "h": 349.8
  },
  "luminance": 0.12271
}

Semantic roles & 50–950 ramp

primary
#AF2C78
secondary
#72C595
accent
#E38745
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2C78

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

Preview Lab → · Contrast checker → · Palette generator →

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