#AF315E#AF315E

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

Color values

HEX#AF315E
RGBrgb(175, 49, 94)
HSLhsl(339, 56%, 44%)
HSVhsv(339, 72%, 69%)
CMYKcmyk(0%, 72%, 46.3%, 31.4%)
CIE-LABlab(41.41, 53.86, 3.54)
CIE-LCHlch(41.41, 53.97, 3.76°)
OKLaboklab(51.64% 0.1648 0.0097)
OKLCHoklch(51.64% 0.165 3.4)
XYZxyz(20.7995, 12.1214, 11.8319)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF315E #31AF82
analogous
#AF319D #AF315E #AF4331
triadic
#AF315E #5EAF31 #315EAF
tetradic
#AF315E #9DAF31 #31AF82 #4331AF
square
#AF315E #9DAF31 #31AF82 #4331AF
split-complementary
#AF315E #31AF43 #319DAF
monochromatic
#4F162B #7F2444 #AF315E #CE4F7D #DB7FA0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF315E#FFFFFF#000000##FFFFFF
##AF315E1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af315e;
/* rgb */ color: rgb(175, 49, 94);
/* oklch */ color: oklch(51.6% 0.165 3.4);
Tailwind
colors: {
  custom: {
    50: '#cc738b',
    500: '#af315e',
    950: '#000000',
  },
}
SCSS
$custom: #af315e;
$custom-light: #cc738b;
$custom-dark: #000000;
JSON
{
  "hex": "#af315e",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 338.571,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51637,
    "c": 0.16509,
    "h": 3.4
  },
  "luminance": 0.12119
}

Semantic roles & 50–950 ramp

primary
#AF315E
secondary
#78C4A9
accent
#E0AA48
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AF315E

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

Preview Lab → · Contrast checker → · Palette generator →

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