#AF317B#AF317B

#AF317B is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.7% C 0.177 H 348.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AF317B
RGBrgb(175, 49, 123)
HSLhsl(325, 56%, 44%)
HSVhsv(325, 72%, 69%)
CMYKcmyk(0%, 72%, 29.7%, 31.4%)
CIE-LABlab(42.37, 57.02, -13.08)
CIE-LCHlch(42.37, 58.50, 347.08°)
OKLaboklab(52.66% 0.1737 -0.0343)
OKLCHoklch(52.66% 0.177 348.8)
XYZxyz(22.3538, 12.7431, 20.0175)
Luminance0.1274 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF317B #31AF65
analogous
#A431AF #AF317B #AF313C
triadic
#AF317B #7BAF31 #317BAF
tetradic
#AF317B #AFA431 #31AF65 #313CAF
square
#AF317B #AFA431 #31AF65 #313CAF
split-complementary
#AF317B #3CAF31 #31AFA4
monochromatic
#4F1638 #7F2459 #AF317B #CE4F9A #DB7FB5

Accessibility & contrast

On white

5.92
#AF317B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AF317B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF317B
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF317B#FFFFFF#000000##FFFFFF
##AF317B1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44567D
Deuteranopia (green-blind)
#686C78
Tritanopia (blue-blind)
#BC2B52
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af317b;
/* rgb */ color: rgb(175, 49, 123);
/* oklch */ color: oklch(52.7% 0.177 348.8);
Tailwind
colors: {
  custom: {
    50: '#cb74a1',
    500: '#af317b',
    950: '#000000',
  },
}
SCSS
$custom: #af317b;
$custom-light: #cb74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af317b",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 324.762,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52662,
    "c": 0.17708,
    "h": 348.8
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#AF317B
secondary
#78C497
accent
#E08748
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF317B

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

Preview Lab → · Contrast checker → · Palette generator →

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