#AF3F87#AF3F87

#AF3F87 is a mid, vivid pink. Relative luminance 0.144; OKLCH L 54.6% C 0.166 H 344.5°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF3F87
RGBrgb(175, 63, 135)
HSLhsl(321, 47%, 47%)
HSVhsv(321, 64%, 69%)
CMYKcmyk(0%, 64%, 22.9%, 31.4%)
CIE-LABlab(44.83, 53.09, -16.68)
CIE-LCHlch(44.83, 55.64, 342.56°)
OKLaboklab(54.62% 0.1596 -0.0443)
OKLCHoklch(54.62% 0.166 344.5)
XYZxyz(23.8307, 14.4205, 24.4454)
Luminance0.1442 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F87 #3FAF67
analogous
#9F3FAF #AF3F87 #AF3F4F
triadic
#AF3F87 #87AF3F #3F87AF
tetradic
#AF3F87 #AF9F3F #3FAF67 #3F4FAF
square
#AF3F87 #AF9F3F #3FAF67 #3F4FAF
split-complementary
#AF3F87 #4FAF3F #3FAF9F
monochromatic
#551F42 #822F64 #AF3F87 #C764A4 #D791BE

Accessibility & contrast

On white

5.41
#AF3F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF3F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F87
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F87#FFFFFF#000000##FFFFFF
##AF3F871.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5E89
Deuteranopia (green-blind)
#6A7184
Tritanopia (blue-blind)
#BA3E5D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af3f87;
/* rgb */ color: rgb(175, 63, 135);
/* oklch */ color: oklch(54.6% 0.166 344.5);
Tailwind
colors: {
  custom: {
    50: '#ca7baa',
    500: '#af3f87',
    950: '#000000',
  },
}
SCSS
$custom: #af3f87;
$custom-light: #ca7baa;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f87",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 321.429,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54617,
    "c": 0.16564,
    "h": 344.5
  },
  "luminance": 0.14418
}

Semantic roles & 50–950 ramp

primary
#AF3F87
secondary
#87C39C
accent
#D78151
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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