#AF318E#AF318E

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

Color values

HEX#AF318E
RGBrgb(175, 49, 142)
HSLhsl(316, 56%, 44%)
HSVhsv(316, 72%, 69%)
CMYKcmyk(0%, 72%, 18.9%, 31.4%)
CIE-LABlab(43.16, 59.53, -23.49)
CIE-LCHlch(43.16, 64.00, 338.46°)
OKLaboklab(53.49% 0.1776 -0.0633)
OKLCHoklch(53.49% 0.189 340.4)
XYZxyz(23.6606, 13.2659, 26.9004)
Luminance0.1326 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF318E #31AF52
analogous
#9131AF #AF318E #AF314F
triadic
#AF318E #8EAF31 #318EAF
tetradic
#AF318E #AF9131 #31AF52 #314FAF
square
#AF318E #AF9131 #31AF52 #314FAF
split-complementary
#AF318E #4FAF31 #31AF91
monochromatic
#4F1640 #7F2467 #AF318E #CE4FAD #DB7FC3

Accessibility & contrast

On white

5.75
#AF318E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF318E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF318E
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF318E#FFFFFF#000000##FFFFFF
##AF318E1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5991
Deuteranopia (green-blind)
#626D8B
Tritanopia (blue-blind)
#B9345B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af318e;
/* rgb */ color: rgb(175, 49, 142);
/* oklch */ color: oklch(53.5% 0.189 340.4);
Tailwind
colors: {
  custom: {
    50: '#cb75af',
    500: '#af318e',
    950: '#000000',
  },
}
SCSS
$custom: #af318e;
$custom-light: #cb75af;
$custom-dark: #000000;
JSON
{
  "hex": "#af318e",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 315.714,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53494,
    "c": 0.18854,
    "h": 340.4
  },
  "luminance": 0.13264
}

Semantic roles & 50–950 ramp

primary
#AF318E
secondary
#78C48C
accent
#E07048
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF318E

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

Preview Lab → · Contrast checker → · Palette generator →

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