#AF318B#AF318B

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

Color values

HEX#AF318B
RGBrgb(175, 49, 139)
HSLhsl(317, 56%, 44%)
HSVhsv(317, 72%, 69%)
CMYKcmyk(0%, 72%, 20.6%, 31.4%)
CIE-LABlab(43.03, 59.11, -21.88)
CIE-LCHlch(43.03, 63.03, 339.69°)
OKLaboklab(53.35% 0.1771 -0.0588)
OKLCHoklch(53.35% 0.187 341.6)
XYZxyz(23.4384, 13.1770, 25.7301)
Luminance0.1318 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF318B #31AF55
analogous
#9431AF #AF318B #AF314C
triadic
#AF318B #8BAF31 #318BAF
tetradic
#AF318B #AF9431 #31AF55 #314CAF
square
#AF318B #AF9431 #31AF55 #314CAF
split-complementary
#AF318B #4CAF31 #31AF94
monochromatic
#4F163F #7F2465 #AF318B #CE4FAA #DB7FC1

Accessibility & contrast

On white

5.78
#AF318B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF318B
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF318B#FFFFFF#000000##FFFFFF
##AF318B1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af318b;
/* rgb */ color: rgb(175, 49, 139);
/* oklch */ color: oklch(53.4% 0.187 341.6);
Tailwind
colors: {
  custom: {
    50: '#cb74ad',
    500: '#af318b',
    950: '#000000',
  },
}
SCSS
$custom: #af318b;
$custom-light: #cb74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af318b",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 317.143,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53354,
    "c": 0.18658,
    "h": 341.6
  },
  "luminance": 0.13175
}

Semantic roles & 50–950 ramp

primary
#AF318B
secondary
#78C48E
accent
#E07348
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF318B

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

Preview Lab → · Contrast checker → · Palette generator →

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