#AF4F8A#AF4F8A

#AF4F8A is a mid, vivid pink. Relative luminance 0.165; OKLCH L 56.8% C 0.143 H 344.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF4F8A
RGBrgb(175, 79, 138)
HSLhsl(323, 38%, 50%)
HSVhsv(323, 55%, 69%)
CMYKcmyk(0%, 54.9%, 21.1%, 31.4%)
CIE-LABlab(47.68, 46.15, -14.15)
CIE-LCHlch(47.68, 48.27, 342.95°)
OKLaboklab(56.76% 0.138 -0.0375)
OKLCHoklch(56.76% 0.143 344.8)
XYZxyz(25.0633, 16.5430, 25.9129)
Luminance0.1654 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4F8A #4FAF74
analogous
#A44FAF #AF4F8A #AF4F5A
triadic
#AF4F8A #8AAF4F #4F8AAF
tetradic
#AF4F8A #AFA44F #4FAF74 #4F5AAF
square
#AF4F8A #AFA44F #4FAF74 #4F5AAF
split-complementary
#AF4F8A #5AAF4F #4FAFA4
monochromatic
#5B2947 #853C69 #AF4F8A #C279A6 #D5A3C2

Accessibility & contrast

On white

4.87
#AF4F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AF4F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4F8A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4F8A#FFFFFF#000000##FFFFFF
##AF4F8A1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#57678C
Deuteranopia (green-blind)
#727788
Tritanopia (blue-blind)
#B94E66
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4f8a;
/* rgb */ color: rgb(175, 79, 138);
/* oklch */ color: oklch(56.8% 0.143 344.8);
Tailwind
colors: {
  custom: {
    50: '#c984ac',
    500: '#af4f8a',
    950: '#000000',
  },
}
SCSS
$custom: #af4f8a;
$custom-light: #c984ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af4f8a",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 323.125,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56761,
    "c": 0.14301,
    "h": 344.8
  },
  "luminance": 0.16541
}

Semantic roles & 50–950 ramp

primary
#AF4F8A
secondary
#97C3A8
accent
#CE875A
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF4F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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