#AF3166#AF3166

#AF3166 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 51.9% C 0.168 H 359.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#AF3166
RGBrgb(175, 49, 102)
HSLhsl(335, 56%, 44%)
HSVhsv(335, 72%, 69%)
CMYKcmyk(0%, 72%, 41.7%, 31.4%)
CIE-LABlab(41.65, 54.65, -1.12)
CIE-LCHlch(41.65, 54.66, 358.82°)
OKLaboklab(51.89% 0.1676 -0.0023)
OKLCHoklch(51.89% 0.168 359.2)
XYZxyz(21.1773, 12.2725, 13.8214)
Luminance0.1227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3166 #31AF7A
analogous
#AF31A5 #AF3166 #AF3B31
triadic
#AF3166 #66AF31 #3166AF
tetradic
#AF3166 #A5AF31 #31AF7A #3B31AF
square
#AF3166 #A5AF31 #31AF7A #3B31AF
split-complementary
#AF3166 #31AF3B #31A5AF
monochromatic
#4F162E #7F244A #AF3166 #CE4F85 #DB7FA6

Accessibility & contrast

On white

6.08
#AF3166 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AF3166 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3166
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3166#FFFFFF#000000##FFFFFF
##AF31661.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5367
Deuteranopia (green-blind)
#6D6B63
Tritanopia (blue-blind)
#BE2047
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af3166;
/* rgb */ color: rgb(175, 49, 102);
/* oklch */ color: oklch(51.9% 0.168 359.2);
Tailwind
colors: {
  custom: {
    50: '#cc7391',
    500: '#af3166',
    950: '#000000',
  },
}
SCSS
$custom: #af3166;
$custom-light: #cc7391;
$custom-dark: #000000;
JSON
{
  "hex": "#af3166",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 334.762,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5189,
    "c": 0.16761,
    "h": 359.2
  },
  "luminance": 0.1227
}

Semantic roles & 50–950 ramp

primary
#AF3166
secondary
#78C4A4
accent
#E0A048
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AF3166

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

Preview Lab → · Contrast checker → · Palette generator →

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