#AF315C#AF315C

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

Color values

HEX#AF315C
RGBrgb(175, 49, 92)
HSLhsl(340, 56%, 44%)
HSVhsv(340, 72%, 69%)
CMYKcmyk(0%, 72%, 47.4%, 31.4%)
CIE-LABlab(41.35, 53.67, 4.72)
CIE-LCHlch(41.35, 53.88, 5.02°)
OKLaboklab(51.58% 0.1641 0.0126)
OKLCHoklch(51.58% 0.165 4.4)
XYZxyz(20.7110, 12.0860, 11.3654)
Luminance0.1208 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF315C #31AF84
analogous
#AF319B #AF315C #AF4531
triadic
#AF315C #5CAF31 #315CAF
tetradic
#AF315C #9BAF31 #31AF84 #4531AF
square
#AF315C #9BAF31 #31AF84 #4531AF
split-complementary
#AF315C #31AF45 #319BAF
monochromatic
#4F162A #7F2443 #AF315C #CE4F7B #DB7F9F

Accessibility & contrast

On white

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

On black

3.42
#AF315C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF315C#FFFFFF#000000##FFFFFF
##AF315C1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E525D
Deuteranopia (green-blind)
#6F6B59
Tritanopia (blue-blind)
#BE1B43
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af315c;
/* rgb */ color: rgb(175, 49, 92);
/* oklch */ color: oklch(51.6% 0.165 4.4);
Tailwind
colors: {
  custom: {
    50: '#cc7389',
    500: '#af315c',
    950: '#000000',
  },
}
SCSS
$custom: #af315c;
$custom-light: #cc7389;
$custom-dark: #000000;
JSON
{
  "hex": "#af315c",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 92
  },
  "hsl": {
    "h": 339.524,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51577,
    "c": 0.16457,
    "h": 4.4
  },
  "luminance": 0.12083
}

Semantic roles & 50–950 ramp

primary
#AF315C
secondary
#78C4AA
accent
#E0AC48
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF315C

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

Preview Lab → · Contrast checker → · Palette generator →

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