#AF316E#AF316E

#AF316E is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.2% C 0.171 H 355.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#AF316E
RGBrgb(175, 49, 110)
HSLhsl(331, 56%, 44%)
HSVhsv(331, 72%, 69%)
CMYKcmyk(0%, 72%, 37.1%, 31.4%)
CIE-LABlab(41.91, 55.50, -5.73)
CIE-LCHlch(41.91, 55.79, 354.10°)
OKLaboklab(52.17% 0.1701 -0.0144)
OKLCHoklch(52.17% 0.171 355.2)
XYZxyz(21.5934, 12.4390, 16.0127)
Luminance0.1244 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF316E #31AF72
analogous
#AF31AD #AF316E #AF3331
triadic
#AF316E #6EAF31 #316EAF
tetradic
#AF316E #ADAF31 #31AF72 #3331AF
square
#AF316E #ADAF31 #31AF72 #3331AF
split-complementary
#AF316E #31AF33 #31ADAF
monochromatic
#4F1632 #7F2450 #AF316E #CE4F8D #DB7FAC

Accessibility & contrast

On white

6.02
#AF316E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AF316E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF316E
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF316E#FFFFFF#000000##FFFFFF
##AF316E1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485470
Deuteranopia (green-blind)
#6B6B6B
Tritanopia (blue-blind)
#BD244B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af316e;
/* rgb */ color: rgb(175, 49, 110);
/* oklch */ color: oklch(52.2% 0.171 355.2);
Tailwind
colors: {
  custom: {
    50: '#cb7497',
    500: '#af316e',
    950: '#000000',
  },
}
SCSS
$custom: #af316e;
$custom-light: #cb7497;
$custom-dark: #000000;
JSON
{
  "hex": "#af316e",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 110
  },
  "hsl": {
    "h": 330.952,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52166,
    "c": 0.17075,
    "h": 355.2
  },
  "luminance": 0.12436
}

Semantic roles & 50–950 ramp

primary
#AF316E
secondary
#78C49F
accent
#E09648
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E

Preview Lab

Preview with #AF316E

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

Preview Lab → · Contrast checker → · Palette generator →

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