#AF315F#AF315F

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

Color values

HEX#AF315F
RGBrgb(175, 49, 95)
HSLhsl(338, 56%, 44%)
HSVhsv(338, 72%, 69%)
CMYKcmyk(0%, 72%, 45.7%, 31.4%)
CIE-LABlab(41.44, 53.95, 2.95)
CIE-LCHlch(41.44, 54.03, 3.13°)
OKLaboklab(51.67% 0.1652 0.0082)
OKLCHoklch(51.67% 0.165 2.8)
XYZxyz(20.8447, 12.1395, 12.0697)
Luminance0.1214 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF315F #31AF81
analogous
#AF319E #AF315F #AF4231
triadic
#AF315F #5FAF31 #315FAF
tetradic
#AF315F #9EAF31 #31AF81 #4231AF
square
#AF315F #9EAF31 #31AF81 #4231AF
split-complementary
#AF315F #31AF42 #319EAF
monochromatic
#4F162B #7F2445 #AF315F #CE4F7E #DB7FA1

Accessibility & contrast

On white

6.13
#AF315F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF315F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF315F
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF315F#FFFFFF#000000##FFFFFF
##AF315F1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5260
Deuteranopia (green-blind)
#6F6B5C
Tritanopia (blue-blind)
#BE1C44
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af315f;
/* rgb */ color: rgb(175, 49, 95);
/* oklch */ color: oklch(51.7% 0.165 2.8);
Tailwind
colors: {
  custom: {
    50: '#cc738c',
    500: '#af315f',
    950: '#000000',
  },
}
SCSS
$custom: #af315f;
$custom-light: #cc738c;
$custom-dark: #000000;
JSON
{
  "hex": "#af315f",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 338.095,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51667,
    "c": 0.16537,
    "h": 2.8
  },
  "luminance": 0.12137
}

Semantic roles & 50–950 ramp

primary
#AF315F
secondary
#78C4A8
accent
#E0A848
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AF315F

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

Preview Lab → · Contrast checker → · Palette generator →

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