#AF3A7D#AF3A7D

#AF3A7D is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.6% C 0.167 H 348.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF3A7D
RGBrgb(175, 58, 125)
HSLhsl(326, 50%, 46%)
HSVhsv(326, 67%, 69%)
CMYKcmyk(0%, 66.9%, 28.6%, 31.4%)
CIE-LABlab(43.69, 53.83, -12.32)
CIE-LCHlch(43.69, 55.22, 347.11°)
OKLaboklab(53.65% 0.1635 -0.0323)
OKLCHoklch(53.65% 0.167 348.8)
XYZxyz(22.8950, 13.6232, 20.8219)
Luminance0.1362 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3A7D #3AAF6C
analogous
#A63AAF #AF3A7D #AF3A42
triadic
#AF3A7D #7DAF3A #3A7DAF
tetradic
#AF3A7D #AFA63A #3AAF6C #3A42AF
square
#AF3A7D #AFA63A #3AAF6C #3A42AF
split-complementary
#AF3A7D #42AF3A #3AAFA6
monochromatic
#531C3B #812B5C #AF3A7D #C95D9B #D98BB7

Accessibility & contrast

On white

5.64
#AF3A7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF3A7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3A7D
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3A7D#FFFFFF#000000##FFFFFF
##AF3A7D1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5A7F
Deuteranopia (green-blind)
#6B6F7A
Tritanopia (blue-blind)
#BB3556
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af3a7d;
/* rgb */ color: rgb(175, 58, 125);
/* oklch */ color: oklch(53.6% 0.167 348.8);
Tailwind
colors: {
  custom: {
    50: '#cb78a2',
    500: '#af3a7d',
    950: '#000000',
  },
}
SCSS
$custom: #af3a7d;
$custom-light: #cb78a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3a7d",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 125
  },
  "hsl": {
    "h": 325.641,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5365,
    "c": 0.16668,
    "h": 348.8
  },
  "luminance": 0.13621
}

Semantic roles & 50–950 ramp

primary
#AF3A7D
secondary
#82C39E
accent
#DA8A4E
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AF3A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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