#AF319A#AF319A

#AF319A is a mid, vivid pink. Relative luminance 0.136; OKLCH L 54.1% C 0.197 H 335.5°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AF319A
RGBrgb(175, 49, 154)
HSLhsl(310, 56%, 44%)
HSVhsv(310, 72%, 69%)
CMYKcmyk(0%, 72%, 12%, 31.4%)
CIE-LABlab(43.72, 61.27, -29.87)
CIE-LCHlch(43.72, 68.16, 334.01°)
OKLaboklab(54.08% 0.1791 -0.0815)
OKLCHoklch(54.08% 0.197 335.5)
XYZxyz(24.6106, 13.6458, 31.9033)
Luminance0.1364 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF319A #31AF46
analogous
#8531AF #AF319A #AF315B
triadic
#AF319A #9AAF31 #319AAF
tetradic
#AF319A #AF8531 #31AF46 #315BAF
square
#AF319A #AF8531 #31AF46 #315BAF
split-complementary
#AF319A #5BAF31 #31AF85
monochromatic
#4F1646 #7F2470 #AF319A #CE4FB9 #DB7FCC

Accessibility & contrast

On white

5.63
#AF319A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF319A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF319A
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF319A#FFFFFF#000000##FFFFFF
##AF319A1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325B9D
Deuteranopia (green-blind)
#5D6E97
Tritanopia (blue-blind)
#B83A62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af319a;
/* rgb */ color: rgb(175, 49, 154);
/* oklch */ color: oklch(54.1% 0.197 335.5);
Tailwind
colors: {
  custom: {
    50: '#ca75b8',
    500: '#af319a',
    950: '#000000',
  },
}
SCSS
$custom: #af319a;
$custom-light: #ca75b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af319a",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 310,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54081,
    "c": 0.19679,
    "h": 335.5
  },
  "luminance": 0.13644
}

Semantic roles & 50–950 ramp

primary
#AF319A
secondary
#78C484
accent
#E06148
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF319A

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

Preview Lab → · Contrast checker → · Palette generator →

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