#AF315B#AF315B

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

Color values

HEX#AF315B
RGBrgb(175, 49, 91)
HSLhsl(340, 56%, 44%)
HSVhsv(340, 72%, 69%)
CMYKcmyk(0%, 72%, 48%, 31.4%)
CIE-LABlab(41.32, 53.58, 5.30)
CIE-LCHlch(41.32, 53.84, 5.65°)
OKLaboklab(51.55% 0.1637 0.0141)
OKLCHoklch(51.55% 0.164 4.9)
XYZxyz(20.6675, 12.0686, 11.1367)
Luminance0.1207 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF315B #31AF85
analogous
#AF319A #AF315B #AF4631
triadic
#AF315B #5BAF31 #315BAF
tetradic
#AF315B #9AAF31 #31AF85 #4631AF
square
#AF315B #9AAF31 #31AF85 #4631AF
split-complementary
#AF315B #31AF46 #319AAF
monochromatic
#4F1629 #7F2442 #AF315B #CE4F7A #DB7F9E

Accessibility & contrast

On white

6.15
#AF315B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF315B
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF315B#FFFFFF#000000##FFFFFF
##AF315B1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E525C
Deuteranopia (green-blind)
#6F6B58
Tritanopia (blue-blind)
#BE1A42
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af315b;
/* rgb */ color: rgb(175, 49, 91);
/* oklch */ color: oklch(51.5% 0.164 4.9);
Tailwind
colors: {
  custom: {
    50: '#cc7389',
    500: '#af315b',
    950: '#000000',
  },
}
SCSS
$custom: #af315b;
$custom-light: #cc7389;
$custom-dark: #000000;
JSON
{
  "hex": "#af315b",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 340,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51548,
    "c": 0.16432,
    "h": 4.9
  },
  "luminance": 0.12066
}

Semantic roles & 50–950 ramp

primary
#AF315B
secondary
#78C4AB
accent
#E0AD48
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF315B

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

Preview Lab → · Contrast checker → · Palette generator →

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