#AF4498#AF4498

#AF4498 is a mid, vivid pink. Relative luminance 0.155; OKLCH L 56.0% C 0.170 H 336.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF4498
RGBrgb(175, 68, 152)
HSLhsl(313, 44%, 48%)
HSVhsv(313, 61%, 69%)
CMYKcmyk(0%, 61.1%, 13.1%, 31.4%)
CIE-LABlab(46.33, 53.43, -24.60)
CIE-LCHlch(46.33, 58.83, 335.28°)
OKLaboklab(55.95% 0.1565 -0.0666)
OKLCHoklch(55.95% 0.17 336.9)
XYZxyz(25.4141, 15.5173, 31.3563)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4498 #44AF5B
analogous
#9044AF #AF4498 #AF4463
triadic
#AF4498 #98AF44 #4498AF
tetradic
#AF4498 #AF9044 #44AF5B #4463AF
square
#AF4498 #AF9044 #44AF5B #4463AF
split-complementary
#AF4498 #63AF44 #44AF90
monochromatic
#57224B #833372 #AF4498 #C56BB2 #D797C9

Accessibility & contrast

On white

5.12
#AF4498 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AF4498 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4498
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4498#FFFFFF#000000##FFFFFF
##AF44981.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46639B
Deuteranopia (green-blind)
#677495
Tritanopia (blue-blind)
#B84968
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af4498;
/* rgb */ color: rgb(175, 68, 152);
/* oklch */ color: oklch(56.0% 0.170 336.9);
Tailwind
colors: {
  custom: {
    50: '#ca7eb6',
    500: '#af4498',
    950: '#000000',
  },
}
SCSS
$custom: #af4498;
$custom-light: #ca7eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4498",
  "rgb": {
    "r": 175,
    "g": 68,
    "b": 152
  },
  "hsl": {
    "h": 312.897,
    "s": 44.033,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55954,
    "c": 0.17013,
    "h": 336.9
  },
  "luminance": 0.15515
}

Semantic roles & 50–950 ramp

primary
#AF4498
secondary
#8CC298
accent
#D46F54
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF4498

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

Preview Lab → · Contrast checker → · Palette generator →

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