#AF318C#AF318C

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

Color values

HEX#AF318C
RGBrgb(175, 49, 140)
HSLhsl(317, 56%, 44%)
HSVhsv(317, 72%, 69%)
CMYKcmyk(0%, 72%, 20%, 31.4%)
CIE-LABlab(43.07, 59.25, -22.42)
CIE-LCHlch(43.07, 63.35, 339.28°)
OKLaboklab(53.4% 0.1773 -0.0603)
OKLCHoklch(53.4% 0.187 341.2)
XYZxyz(23.5118, 13.2064, 26.1167)
Luminance0.1320 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF318C #31AF54
analogous
#9331AF #AF318C #AF314D
triadic
#AF318C #8CAF31 #318CAF
tetradic
#AF318C #AF9331 #31AF54 #314DAF
square
#AF318C #AF9331 #31AF54 #314DAF
split-complementary
#AF318C #4DAF31 #31AF93
monochromatic
#4F1640 #7F2466 #AF318C #CE4FAB #DB7FC2

Accessibility & contrast

On white

5.77
#AF318C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF318C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF318C
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF318C#FFFFFF#000000##FFFFFF
##AF318C1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B598F
Deuteranopia (green-blind)
#636D89
Tritanopia (blue-blind)
#BA335A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af318c;
/* rgb */ color: rgb(175, 49, 140);
/* oklch */ color: oklch(53.4% 0.187 341.2);
Tailwind
colors: {
  custom: {
    50: '#cb75ae',
    500: '#af318c',
    950: '#000000',
  },
}
SCSS
$custom: #af318c;
$custom-light: #cb75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af318c",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 316.667,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.534,
    "c": 0.18722,
    "h": 341.2
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#AF318C
secondary
#78C48D
accent
#E07248
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF318C

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

Preview Lab → · Contrast checker → · Palette generator →

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