#AF3F99#AF3F99

#AF3F99 is a mid, vivid pink. Relative luminance 0.150; OKLCH L 55.4% C 0.178 H 336.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF3F99
RGBrgb(175, 63, 153)
HSLhsl(312, 47%, 47%)
HSVhsv(312, 64%, 69%)
CMYKcmyk(0%, 64%, 12.6%, 31.4%)
CIE-LABlab(45.59, 55.75, -26.35)
CIE-LCHlch(45.59, 61.66, 334.70°)
OKLaboklab(55.43% 0.1631 -0.0715)
OKLCHoklch(55.43% 0.178 336.3)
XYZxyz(25.2068, 14.9710, 31.6929)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F99 #3FAF55
analogous
#8D3FAF #AF3F99 #AF3F61
triadic
#AF3F99 #99AF3F #3F99AF
tetradic
#AF3F99 #AF8D3F #3FAF55 #3F61AF
square
#AF3F99 #AF8D3F #3FAF55 #3F61AF
split-complementary
#AF3F99 #61AF3F #3FAF8D
monochromatic
#551F4A #822F72 #AF3F99 #C764B4 #D791CA

Accessibility & contrast

On white

5.26
#AF3F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF3F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F99
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F99#FFFFFF#000000##FFFFFF
##AF3F991.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41619C
Deuteranopia (green-blind)
#647296
Tritanopia (blue-blind)
#B84566
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3f99;
/* rgb */ color: rgb(175, 63, 153);
/* oklch */ color: oklch(55.4% 0.178 336.3);
Tailwind
colors: {
  custom: {
    50: '#ca7cb7',
    500: '#af3f99',
    950: '#000000',
  },
}
SCSS
$custom: #af3f99;
$custom-light: #ca7cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f99",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 311.786,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55427,
    "c": 0.17809,
    "h": 336.3
  },
  "luminance": 0.14969
}

Semantic roles & 50–950 ramp

primary
#AF3F99
secondary
#87C393
accent
#D76B51
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF3F99

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

Preview Lab → · Contrast checker → · Palette generator →

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