#AF318D#AF318D

#AF318D is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.4% C 0.188 H 340.8°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AF318D
RGBrgb(175, 49, 141)
HSLhsl(316, 56%, 44%)
HSVhsv(316, 72%, 69%)
CMYKcmyk(0%, 72%, 19.4%, 31.4%)
CIE-LABlab(43.12, 59.39, -22.96)
CIE-LCHlch(43.12, 63.67, 338.87°)
OKLaboklab(53.45% 0.1774 -0.0618)
OKLCHoklch(53.45% 0.188 340.8)
XYZxyz(23.5859, 13.2360, 26.5068)
Luminance0.1323 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF318D #31AF53
analogous
#9231AF #AF318D #AF314E
triadic
#AF318D #8DAF31 #318DAF
tetradic
#AF318D #AF9231 #31AF53 #314EAF
square
#AF318D #AF9231 #31AF53 #314EAF
split-complementary
#AF318D #4EAF31 #31AF92
monochromatic
#4F1640 #7F2466 #AF318D #CE4FAC #DB7FC2

Accessibility & contrast

On white

5.76
#AF318D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF318D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF318D
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF318D#FFFFFF#000000##FFFFFF
##AF318D1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5990
Deuteranopia (green-blind)
#626D8A
Tritanopia (blue-blind)
#BA345B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af318d;
/* rgb */ color: rgb(175, 49, 141);
/* oklch */ color: oklch(53.4% 0.188 340.8);
Tailwind
colors: {
  custom: {
    50: '#cb75ae',
    500: '#af318d',
    950: '#000000',
  },
}
SCSS
$custom: #af318d;
$custom-light: #cb75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af318d",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 316.19,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53447,
    "c": 0.18788,
    "h": 340.8
  },
  "luminance": 0.13234
}

Semantic roles & 50–950 ramp

primary
#AF318D
secondary
#78C48C
accent
#E07148
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF318D

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

Preview Lab → · Contrast checker → · Palette generator →

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