#AF3F7E#AF3F7E

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

Color values

HEX#AF3F7E
RGBrgb(175, 63, 126)
HSLhsl(326, 47%, 47%)
HSVhsv(326, 64%, 69%)
CMYKcmyk(0%, 64%, 28%, 31.4%)
CIE-LABlab(44.49, 51.87, -11.72)
CIE-LCHlch(44.49, 53.17, 347.27°)
OKLaboklab(54.25% 0.1573 -0.0307)
OKLCHoklch(54.25% 0.16 349)
XYZxyz(23.2236, 14.1777, 21.2481)
Luminance0.1417 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F7E #3FAF70
analogous
#A83FAF #AF3F7E #AF3F46
triadic
#AF3F7E #7EAF3F #3F7EAF
tetradic
#AF3F7E #AFA83F #3FAF70 #3F46AF
square
#AF3F7E #AFA83F #3FAF70 #3F46AF
split-complementary
#AF3F7E #46AF3F #3FAFA8
monochromatic
#551F3D #822F5E #AF3F7E #C7649C #D791B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF3F7E#FFFFFF#000000##FFFFFF
##AF3F7E1.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)
#4D5D80
Deuteranopia (green-blind)
#6D707B
Tritanopia (blue-blind)
#BB3B59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af3f7e;
/* rgb */ color: rgb(175, 63, 126);
/* oklch */ color: oklch(54.3% 0.160 349.0);
Tailwind
colors: {
  custom: {
    50: '#ca7ba3',
    500: '#af3f7e',
    950: '#000000',
  },
}
SCSS
$custom: #af3f7e;
$custom-light: #ca7ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f7e",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 126
  },
  "hsl": {
    "h": 326.25,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54251,
    "c": 0.16028,
    "h": 349
  },
  "luminance": 0.14175
}

Semantic roles & 50–950 ramp

primary
#AF3F7E
secondary
#87C3A1
accent
#D78C51
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF3F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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