#AF318A#AF318A

#AF318A is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.3% C 0.186 H 342.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF318A
RGBrgb(175, 49, 138)
HSLhsl(318, 56%, 44%)
HSVhsv(318, 72%, 69%)
CMYKcmyk(0%, 72%, 21.1%, 31.4%)
CIE-LABlab(42.99, 58.97, -21.33)
CIE-LCHlch(42.99, 62.71, 340.11°)
OKLaboklab(53.31% 0.1769 -0.0572)
OKLCHoklch(53.31% 0.186 342.1)
XYZxyz(23.3657, 13.1479, 25.3471)
Luminance0.1315 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF318A #31AF56
analogous
#9531AF #AF318A #AF314B
triadic
#AF318A #8AAF31 #318AAF
tetradic
#AF318A #AF9531 #31AF56 #314BAF
square
#AF318A #AF9531 #31AF56 #314BAF
split-complementary
#AF318A #4BAF31 #31AF95
monochromatic
#4F163F #7F2464 #AF318A #CE4FA9 #DB7FC0

Accessibility & contrast

On white

5.79
#AF318A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF318A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF318A
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF318A#FFFFFF#000000##FFFFFF
##AF318A1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C588C
Deuteranopia (green-blind)
#636D87
Tritanopia (blue-blind)
#BA3259
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af318a;
/* rgb */ color: rgb(175, 49, 138);
/* oklch */ color: oklch(53.3% 0.186 342.1);
Tailwind
colors: {
  custom: {
    50: '#cb74ac',
    500: '#af318a',
    950: '#000000',
  },
}
SCSS
$custom: #af318a;
$custom-light: #cb74ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af318a",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 317.619,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53308,
    "c": 0.18594,
    "h": 342.1
  },
  "luminance": 0.13146
}

Semantic roles & 50–950 ramp

primary
#AF318A
secondary
#78C48E
accent
#E07548
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF318A

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

Preview Lab → · Contrast checker → · Palette generator →

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