#AF318F#AF318F

#AF318F is a mid, vivid pink. Relative luminance 0.133; OKLCH L 53.5% C 0.189 H 340.0°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF318F
RGBrgb(175, 49, 143)
HSLhsl(315, 56%, 44%)
HSVhsv(315, 72%, 69%)
CMYKcmyk(0%, 72%, 18.3%, 31.4%)
CIE-LABlab(43.21, 59.67, -24.03)
CIE-LCHlch(43.21, 64.33, 338.06°)
OKLaboklab(53.54% 0.1777 -0.0649)
OKLCHoklch(53.54% 0.189 340)
XYZxyz(23.7361, 13.2960, 27.2976)
Luminance0.1329 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF318F #31AF51
analogous
#9031AF #AF318F #AF3150
triadic
#AF318F #8FAF31 #318FAF
tetradic
#AF318F #AF9031 #31AF51 #3150AF
square
#AF318F #AF9031 #31AF51 #3150AF
split-complementary
#AF318F #50AF31 #31AF90
monochromatic
#4F1641 #7F2468 #AF318F #CE4FAE #DB7FC4

Accessibility & contrast

On white

5.74
#AF318F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF318F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF318F
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF318F#FFFFFF#000000##FFFFFF
##AF318F1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395992
Deuteranopia (green-blind)
#626D8C
Tritanopia (blue-blind)
#B9355C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af318f;
/* rgb */ color: rgb(175, 49, 143);
/* oklch */ color: oklch(53.5% 0.189 340.0);
Tailwind
colors: {
  custom: {
    50: '#cb75b0',
    500: '#af318f',
    950: '#000000',
  },
}
SCSS
$custom: #af318f;
$custom-light: #cb75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af318f",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 315.238,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53541,
    "c": 0.1892,
    "h": 340
  },
  "luminance": 0.13294
}

Semantic roles & 50–950 ramp

primary
#AF318F
secondary
#78C48B
accent
#E06F48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF318F

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

Preview Lab → · Contrast checker → · Palette generator →

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