#AF315A#AF315A

#AF315A is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.5% C 0.164 H 5.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AF315A
RGBrgb(175, 49, 90)
HSLhsl(340, 56%, 44%)
HSVhsv(340, 72%, 69%)
CMYKcmyk(0%, 72%, 48.6%, 31.4%)
CIE-LABlab(41.30, 53.49, 5.89)
CIE-LCHlch(41.30, 53.81, 6.29°)
OKLaboklab(51.52% 0.1633 0.0156)
OKLCHoklch(51.52% 0.164 5.4)
XYZxyz(20.6247, 12.0515, 10.9110)
Luminance0.1205 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF315A #31AF86
analogous
#AF3199 #AF315A #AF4731
triadic
#AF315A #5AAF31 #315AAF
tetradic
#AF315A #99AF31 #31AF86 #4731AF
square
#AF315A #99AF31 #31AF86 #4731AF
split-complementary
#AF315A #31AF47 #3199AF
monochromatic
#4F1629 #7F2441 #AF315A #CE4F79 #DB7F9D

Accessibility & contrast

On white

6.16
#AF315A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AF315A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF315A
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF315A#FFFFFF#000000##FFFFFF
##AF315A1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E525B
Deuteranopia (green-blind)
#706A57
Tritanopia (blue-blind)
#BE1A42
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af315a;
/* rgb */ color: rgb(175, 49, 90);
/* oklch */ color: oklch(51.5% 0.164 5.4);
Tailwind
colors: {
  custom: {
    50: '#cc7388',
    500: '#af315a',
    950: '#000000',
  },
}
SCSS
$custom: #af315a;
$custom-light: #cc7388;
$custom-dark: #000000;
JSON
{
  "hex": "#af315a",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 90
  },
  "hsl": {
    "h": 340.476,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51519,
    "c": 0.16408,
    "h": 5.4
  },
  "luminance": 0.12049
}

Semantic roles & 50–950 ramp

primary
#AF315A
secondary
#78C4AB
accent
#E0AE48
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF315A

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

Preview Lab → · Contrast checker → · Palette generator →

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