#AF3198#AF3198

#AF3198 is a mid, vivid pink. Relative luminance 0.136; OKLCH L 54.0% C 0.195 H 336.3°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AF3198
RGBrgb(175, 49, 152)
HSLhsl(311, 56%, 44%)
HSVhsv(311, 72%, 69%)
CMYKcmyk(0%, 72%, 13.1%, 31.4%)
CIE-LABlab(43.62, 60.97, -28.82)
CIE-LCHlch(43.62, 67.44, 334.70°)
OKLaboklab(53.98% 0.1789 -0.0785)
OKLCHoklch(53.98% 0.195 336.3)
XYZxyz(24.4454, 13.5798, 31.0334)
Luminance0.1358 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3198 #31AF48
analogous
#8731AF #AF3198 #AF3159
triadic
#AF3198 #98AF31 #3198AF
tetradic
#AF3198 #AF8731 #31AF48 #3159AF
square
#AF3198 #AF8731 #31AF48 #3159AF
split-complementary
#AF3198 #59AF31 #31AF87
monochromatic
#4F1645 #7F246E #AF3198 #CE4FB7 #DB7FCA

Accessibility & contrast

On white

5.65
#AF3198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF3198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3198
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3198#FFFFFF#000000##FFFFFF
##AF31981.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335B9B
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#B83961
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af3198;
/* rgb */ color: rgb(175, 49, 152);
/* oklch */ color: oklch(54.0% 0.195 336.3);
Tailwind
colors: {
  custom: {
    50: '#cb75b6',
    500: '#af3198',
    950: '#000000',
  },
}
SCSS
$custom: #af3198;
$custom-light: #cb75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3198",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 310.952,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5398,
    "c": 0.19537,
    "h": 336.3
  },
  "luminance": 0.13578
}

Semantic roles & 50–950 ramp

primary
#AF3198
secondary
#78C486
accent
#E06448
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF3198

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

Preview Lab → · Contrast checker → · Palette generator →

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