#AF2170#AF2170

#AF2170 is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.9% C 0.188 H 352.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#AF2170
RGBrgb(175, 33, 112)
HSLhsl(327, 68%, 41%)
HSVhsv(327, 81%, 69%)
CMYKcmyk(0%, 81.1%, 36%, 31.4%)
CIE-LABlab(40.20, 60.73, -9.53)
CIE-LCHlch(40.20, 61.47, 351.08°)
OKLaboklab(50.94% 0.1866 -0.0245)
OKLCHoklch(50.94% 0.188 352.5)
XYZxyz(21.1491, 11.3742, 16.4078)
Luminance0.1137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2170 #21AF60
analogous
#A721AF #AF2170 #AF2129
triadic
#AF2170 #70AF21 #2170AF
tetradic
#AF2170 #AFA721 #21AF60 #2129AF
square
#AF2170 #AFA721 #21AF60 #2129AF
split-complementary
#AF2170 #29AF21 #21AFA7
monochromatic
#480E2E #7C174F #AF2170 #D93490 #E368AC

Accessibility & contrast

On white

6.41
#AF2170 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#AF2170 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2170
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2170#FFFFFF#000000##FFFFFF
##AF21701.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4E72
Deuteranopia (green-blind)
#66686D
Tritanopia (blue-blind)
#BD0E46
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2170;
/* rgb */ color: rgb(175, 33, 112);
/* oklch */ color: oklch(50.9% 0.188 352.5);
Tailwind
colors: {
  custom: {
    50: '#cc6d99',
    500: '#af2170',
    950: '#000000',
  },
}
SCSS
$custom: #af2170;
$custom-light: #cc6d99;
$custom-dark: #000000;
JSON
{
  "hex": "#af2170",
  "rgb": {
    "r": 175,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 326.62,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50944,
    "c": 0.1882,
    "h": 352.5
  },
  "luminance": 0.11372
}

Semantic roles & 50–950 ramp

primary
#AF2170
secondary
#64C890
accent
#EB8A3D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF2170

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

Preview Lab → · Contrast checker → · Palette generator →

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