#AF3299#AF3299

#AF3299 is a mid, vivid pink. Relative luminance 0.137; OKLCH L 54.1% C 0.195 H 335.9°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF3299
RGBrgb(175, 50, 153)
HSLhsl(311, 56%, 44%)
HSVhsv(311, 71%, 69%)
CMYKcmyk(0%, 71.4%, 12.6%, 31.4%)
CIE-LABlab(43.80, 60.77, -29.15)
CIE-LCHlch(43.80, 67.40, 334.37°)
OKLaboklab(54.12% 0.178 -0.0794)
OKLCHoklch(54.12% 0.195 335.9)
XYZxyz(24.5699, 13.6972, 31.4806)
Luminance0.1369 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3299 #32AF48
analogous
#8732AF #AF3299 #AF325B
triadic
#AF3299 #99AF32 #3299AF
tetradic
#AF3299 #AF8732 #32AF48 #325BAF
square
#AF3299 #AF8732 #32AF48 #325BAF
split-complementary
#AF3299 #5BAF32 #32AF87
monochromatic
#501746 #7F246F #AF3299 #CD51B7 #DB81CB

Accessibility & contrast

On white

5.62
#AF3299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF3299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3299
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3299#FFFFFF#000000##FFFFFF
##AF32991.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335B9C
Deuteranopia (green-blind)
#5E6E96
Tritanopia (blue-blind)
#B83B62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af3299;
/* rgb */ color: rgb(175, 50, 153);
/* oklch */ color: oklch(54.1% 0.195 335.9);
Tailwind
colors: {
  custom: {
    50: '#ca75b7',
    500: '#af3299',
    950: '#000000',
  },
}
SCSS
$custom: #af3299;
$custom-light: #ca75b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3299",
  "rgb": {
    "r": 175,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 310.56,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5412,
    "c": 0.1949,
    "h": 335.9
  },
  "luminance": 0.13695
}

Semantic roles & 50–950 ramp

primary
#AF3299
secondary
#79C486
accent
#DF6349
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF3299

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

Preview Lab → · Contrast checker → · Palette generator →

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