#AF3498#AF3498

#AF3498 is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.3% C 0.192 H 336.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF3498
RGBrgb(175, 52, 152)
HSLhsl(311, 54%, 45%)
HSVhsv(311, 70%, 69%)
CMYKcmyk(0%, 70.3%, 13.1%, 31.4%)
CIE-LABlab(44.00, 59.91, -28.23)
CIE-LCHlch(44.00, 66.23, 334.77°)
OKLaboklab(54.25% 0.1757 -0.0768)
OKLCHoklch(54.25% 0.192 336.4)
XYZxyz(24.5751, 13.8391, 31.0766)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3498 #34AF4B
analogous
#8934AF #AF3498 #AF345A
triadic
#AF3498 #98AF34 #3498AF
tetradic
#AF3498 #AF8934 #34AF4B #345AAF
square
#AF3498 #AF8934 #34AF4B #345AAF
split-complementary
#AF3498 #5AAF34 #34AF89
monochromatic
#511846 #80266F #AF3498 #CC54B6 #DA83CA

Accessibility & contrast

On white

5.57
#AF3498 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AF3498 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3498
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3498#FFFFFF#000000##FFFFFF
##AF34981.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365C9B
Deuteranopia (green-blind)
#5F6F95
Tritanopia (blue-blind)
#B83C62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af3498;
/* rgb */ color: rgb(175, 52, 152);
/* oklch */ color: oklch(54.3% 0.192 336.4);
Tailwind
colors: {
  custom: {
    50: '#ca76b6',
    500: '#af3498',
    950: '#000000',
  },
}
SCSS
$custom: #af3498;
$custom-light: #ca76b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3498",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 311.22,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54253,
    "c": 0.1918,
    "h": 336.4
  },
  "luminance": 0.13837
}

Semantic roles & 50–950 ramp

primary
#AF3498
secondary
#7BC489
accent
#DE664A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF3498

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

Preview Lab → · Contrast checker → · Palette generator →

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