#AF4178#AF4178

#AF4178 is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.3% C 0.154 H 352.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF4178
RGBrgb(175, 65, 120)
HSLhsl(330, 46%, 47%)
HSVhsv(330, 63%, 69%)
CMYKcmyk(0%, 62.9%, 31.4%, 31.4%)
CIE-LABlab(44.59, 50.22, -7.89)
CIE-LCHlch(44.59, 50.84, 351.07°)
OKLaboklab(54.26% 0.1529 -0.0203)
OKLCHoklch(54.26% 0.154 352.4)
XYZxyz(22.9608, 14.2530, 19.3076)
Luminance0.1425 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4178 #41AF78
analogous
#AF41AF #AF4178 #AF4141
triadic
#AF4178 #78AF41 #4178AF
tetradic
#AF4178 #AFAF41 #41AF78 #4141AF
square
#AF4178 #AFAF41 #41AF78 #4141AF
split-complementary
#AF4178 #41AF41 #41AFAF
monochromatic
#56203B #823059 #AF4178 #C66797 #D793B5

Accessibility & contrast

On white

5.45
#AF4178 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AF4178 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4178
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4178#FFFFFF#000000##FFFFFF
##AF41781.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515D7A
Deuteranopia (green-blind)
#6F7175
Tritanopia (blue-blind)
#BC3B57
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af4178;
/* rgb */ color: rgb(175, 65, 120);
/* oklch */ color: oklch(54.3% 0.154 352.4);
Tailwind
colors: {
  custom: {
    50: '#ca7c9f',
    500: '#af4178',
    950: '#000000',
  },
}
SCSS
$custom: #af4178;
$custom-light: #ca7c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#af4178",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 330,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5426,
    "c": 0.15424,
    "h": 352.4
  },
  "luminance": 0.14251
}

Semantic roles & 50–950 ramp

primary
#AF4178
secondary
#89C2A6
accent
#D59452
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF4178

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

Preview Lab → · Contrast checker → · Palette generator →

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