#AF3F8F#AF3F8F

#AF3F8F is a mid, vivid pink. Relative luminance 0.147; OKLCH L 55.0% C 0.171 H 340.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF3F8F
RGBrgb(175, 63, 143)
HSLhsl(317, 47%, 47%)
HSVhsv(317, 64%, 69%)
CMYKcmyk(0%, 64%, 18.3%, 31.4%)
CIE-LABlab(45.16, 54.23, -21.02)
CIE-LCHlch(45.16, 58.16, 338.82°)
OKLaboklab(54.96% 0.1613 -0.0565)
OKLCHoklch(54.96% 0.171 340.7)
XYZxyz(24.4152, 14.6543, 27.5240)
Luminance0.1465 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F8F #3FAF5F
analogous
#973FAF #AF3F8F #AF3F57
triadic
#AF3F8F #8FAF3F #3F8FAF
tetradic
#AF3F8F #AF973F #3FAF5F #3F57AF
square
#AF3F8F #AF973F #3FAF5F #3F57AF
split-complementary
#AF3F8F #57AF3F #3FAF97
monochromatic
#551F45 #822F6A #AF3F8F #C764AB #D791C3

Accessibility & contrast

On white

5.34
#AF3F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AF3F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F8F
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F8F#FFFFFF#000000##FFFFFF
##AF3F8F1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465F91
Deuteranopia (green-blind)
#68718C
Tritanopia (blue-blind)
#B94161
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af3f8f;
/* rgb */ color: rgb(175, 63, 143);
/* oklch */ color: oklch(55.0% 0.171 340.7);
Tailwind
colors: {
  custom: {
    50: '#ca7bb0',
    500: '#af3f8f',
    950: '#000000',
  },
}
SCSS
$custom: #af3f8f;
$custom-light: #ca7bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f8f",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 317.143,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54964,
    "c": 0.17092,
    "h": 340.7
  },
  "luminance": 0.14652
}

Semantic roles & 50–950 ramp

primary
#AF3F8F
secondary
#87C398
accent
#D77751
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF3F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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