#AF3F7D#AF3F7D

#AF3F7D is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.2% C 0.160 H 349.5°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AF3F7D
RGBrgb(175, 63, 125)
HSLhsl(327, 47%, 47%)
HSVhsv(327, 64%, 69%)
CMYKcmyk(0%, 64%, 28.6%, 31.4%)
CIE-LABlab(44.45, 51.73, -11.16)
CIE-LCHlch(44.45, 52.93, 347.82°)
OKLaboklab(54.21% 0.157 -0.0291)
OKLCHoklch(54.21% 0.16 349.5)
XYZxyz(23.1594, 14.1520, 20.9100)
Luminance0.1415 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F7D #3FAF71
analogous
#A93FAF #AF3F7D #AF3F45
triadic
#AF3F7D #7DAF3F #3F7DAF
tetradic
#AF3F7D #AFA93F #3FAF71 #3F45AF
square
#AF3F7D #AFA93F #3FAF71 #3F45AF
split-complementary
#AF3F7D #45AF3F #3FAFA9
monochromatic
#551F3D #822F5D #AF3F7D #C7649B #D791B8

Accessibility & contrast

On white

5.48
#AF3F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AF3F7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F7D
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F7D#FFFFFF#000000##FFFFFF
##AF3F7D1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5D7F
Deuteranopia (green-blind)
#6D707A
Tritanopia (blue-blind)
#BB3A58
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af3f7d;
/* rgb */ color: rgb(175, 63, 125);
/* oklch */ color: oklch(54.2% 0.160 349.5);
Tailwind
colors: {
  custom: {
    50: '#ca7ba2',
    500: '#af3f7d',
    950: '#000000',
  },
}
SCSS
$custom: #af3f7d;
$custom-light: #ca7ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f7d",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 326.786,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54212,
    "c": 0.15972,
    "h": 349.5
  },
  "luminance": 0.1415
}

Semantic roles & 50–950 ramp

primary
#AF3F7D
secondary
#87C3A2
accent
#D78D51
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF3F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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