#AF3399#AF3399

#AF3399 is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.2% C 0.194 H 336.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF3399
RGBrgb(175, 51, 153)
HSLhsl(311, 55%, 44%)
HSVhsv(311, 71%, 69%)
CMYKcmyk(0%, 70.9%, 12.6%, 31.4%)
CIE-LABlab(43.92, 60.42, -28.96)
CIE-LCHlch(43.92, 67.00, 334.39°)
OKLaboklab(54.21% 0.1769 -0.0789)
OKLCHoklch(54.21% 0.194 336)
XYZxyz(24.6131, 13.7837, 31.4950)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3399 #33AF49
analogous
#8733AF #AF3399 #AF335B
triadic
#AF3399 #99AF33 #3399AF
tetradic
#AF3399 #AF8733 #33AF49 #335BAF
square
#AF3399 #AF8733 #33AF49 #335BAF
split-complementary
#AF3399 #5BAF33 #33AF87
monochromatic
#501746 #802570 #AF3399 #CD52B7 #DB82CB

Accessibility & contrast

On white

5.59
#AF3399 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF3399 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3399
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3399#FFFFFF#000000##FFFFFF
##AF33991.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345C9C
Deuteranopia (green-blind)
#5F6E96
Tritanopia (blue-blind)
#B83B62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af3399;
/* rgb */ color: rgb(175, 51, 153);
/* oklch */ color: oklch(54.2% 0.194 336.0);
Tailwind
colors: {
  custom: {
    50: '#ca76b7',
    500: '#af3399',
    950: '#000000',
  },
}
SCSS
$custom: #af3399;
$custom-light: #ca76b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3399",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 310.645,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5421,
    "c": 0.19372,
    "h": 336
  },
  "luminance": 0.13782
}

Semantic roles & 50–950 ramp

primary
#AF3399
secondary
#7AC487
accent
#DE644A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF3399

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

Preview Lab → · Contrast checker → · Palette generator →

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