#AF2F66#AF2F66

#AF2F66 is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.7% C 0.170 H 358.9°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#AF2F66
RGBrgb(175, 47, 102)
HSLhsl(334, 58%, 44%)
HSVhsv(334, 73%, 69%)
CMYKcmyk(0%, 73.1%, 41.7%, 31.4%)
CIE-LABlab(41.39, 55.36, -1.50)
CIE-LCHlch(41.39, 55.38, 358.45°)
OKLaboklab(51.7% 0.1699 -0.0033)
OKLCHoklch(51.7% 0.17 358.9)
XYZxyz(21.0955, 12.1090, 13.7942)
Luminance0.1211 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F66 #2FAF78
analogous
#AF2FA6 #AF2F66 #AF382F
triadic
#AF2F66 #66AF2F #2F66AF
tetradic
#AF2F66 #A6AF2F #2FAF78 #382FAF
square
#AF2F66 #A6AF2F #2FAF78 #382FAF
split-complementary
#AF2F66 #2FAF38 #2FA6AF
monochromatic
#4F152E #7F224A #AF2F66 #CF4C84 #DC7CA5

Accessibility & contrast

On white

6.14
#AF2F66 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AF2F66 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F66
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F66#FFFFFF#000000##FFFFFF
##AF2F661.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5267
Deuteranopia (green-blind)
#6D6A63
Tritanopia (blue-blind)
#BE1D46
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2f66;
/* rgb */ color: rgb(175, 47, 102);
/* oklch */ color: oklch(51.7% 0.170 358.9);
Tailwind
colors: {
  custom: {
    50: '#cc7291',
    500: '#af2f66',
    950: '#000000',
  },
}
SCSS
$custom: #af2f66;
$custom-light: #cc7291;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f66",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 102
  },
  "hsl": {
    "h": 334.219,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.517,
    "c": 0.16991,
    "h": 358.9
  },
  "luminance": 0.12106
}

Semantic roles & 50–950 ramp

primary
#AF2F66
secondary
#75C4A2
accent
#E19F47
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AF2F66

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

Preview Lab → · Contrast checker → · Palette generator →

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