#AF317C#AF317C

#AF317C is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.7% C 0.178 H 348.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AF317C
RGBrgb(175, 49, 124)
HSLhsl(324, 56%, 44%)
HSVhsv(324, 72%, 69%)
CMYKcmyk(0%, 72%, 29.1%, 31.4%)
CIE-LABlab(42.41, 57.15, -13.64)
CIE-LCHlch(42.41, 58.75, 346.58°)
OKLaboklab(52.7% 0.174 -0.0358)
OKLCHoklch(52.7% 0.178 348.4)
XYZxyz(22.4167, 12.7683, 20.3489)
Luminance0.1277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF317C #31AF64
analogous
#A331AF #AF317C #AF313D
triadic
#AF317C #7CAF31 #317CAF
tetradic
#AF317C #AFA331 #31AF64 #313DAF
square
#AF317C #AFA331 #31AF64 #313DAF
split-complementary
#AF317C #3DAF31 #31AFA3
monochromatic
#4F1638 #7F245A #AF317C #CE4F9B #DB7FB6

Accessibility & contrast

On white

5.91
#AF317C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF317C
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF317C#FFFFFF#000000##FFFFFF
##AF317C1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43567E
Deuteranopia (green-blind)
#686C79
Tritanopia (blue-blind)
#BB2C52
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af317c;
/* rgb */ color: rgb(175, 49, 124);
/* oklch */ color: oklch(52.7% 0.178 348.4);
Tailwind
colors: {
  custom: {
    50: '#cb74a2',
    500: '#af317c',
    950: '#000000',
  },
}
SCSS
$custom: #af317c;
$custom-light: #cb74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af317c",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 324.286,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52703,
    "c": 0.17762,
    "h": 348.4
  },
  "luminance": 0.12766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF317C

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

Preview Lab → · Contrast checker → · Palette generator →

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