#AF3398#AF3398

#AF3398 is a mid, vivid pink. Relative luminance 0.137; OKLCH L 54.2% C 0.193 H 336.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF3398
RGBrgb(175, 51, 152)
HSLhsl(311, 55%, 44%)
HSVhsv(311, 71%, 69%)
CMYKcmyk(0%, 70.9%, 13.1%, 31.4%)
CIE-LABlab(43.87, 60.27, -28.43)
CIE-LCHlch(43.87, 66.64, 334.75°)
OKLaboklab(54.16% 0.1768 -0.0774)
OKLCHoklch(54.16% 0.193 336.4)
XYZxyz(24.5309, 13.7508, 31.0619)
Luminance0.1375 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3398 #33AF4A
analogous
#8833AF #AF3398 #AF335A
triadic
#AF3398 #98AF33 #3398AF
tetradic
#AF3398 #AF8833 #33AF4A #335AAF
square
#AF3398 #AF8833 #33AF4A #335AAF
split-complementary
#AF3398 #5AAF33 #33AF88
monochromatic
#501746 #80256F #AF3398 #CD52B6 #DB82CA

Accessibility & contrast

On white

5.60
#AF3398 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AF3398 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3398
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3398#FFFFFF#000000##FFFFFF
##AF33981.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355C9B
Deuteranopia (green-blind)
#5F6E95
Tritanopia (blue-blind)
#B83B61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af3398;
/* rgb */ color: rgb(175, 51, 152);
/* oklch */ color: oklch(54.2% 0.193 336.4);
Tailwind
colors: {
  custom: {
    50: '#ca76b6',
    500: '#af3398',
    950: '#000000',
  },
}
SCSS
$custom: #af3398;
$custom-light: #ca76b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3398",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 311.129,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5416,
    "c": 0.193,
    "h": 336.4
  },
  "luminance": 0.13749
}

Semantic roles & 50–950 ramp

primary
#AF3398
secondary
#7AC488
accent
#DE654A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF3398

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

Preview Lab → · Contrast checker → · Palette generator →

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