#AF2A6A#AF2A6A

#AF2A6A is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.4% C 0.177 H 356.2°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#AF2A6A
RGBrgb(175, 42, 106)
HSLhsl(331, 61%, 43%)
HSVhsv(331, 76%, 69%)
CMYKcmyk(0%, 76%, 39.4%, 31.4%)
CIE-LABlab(40.92, 57.46, -4.70)
CIE-LCHlch(40.92, 57.66, 355.32°)
OKLaboklab(51.4% 0.1765 -0.0116)
OKLCHoklch(51.4% 0.177 356.2)
XYZxyz(21.1101, 11.8132, 14.8014)
Luminance0.1181 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A6A #2AAF6F
analogous
#AF2AAC #AF2A6A #AF2D2A
triadic
#AF2A6A #6AAF2A #2A6AAF
tetradic
#AF2A6A #ACAF2A #2AAF6F #2D2AAF
square
#AF2A6A #ACAF2A #2AAF6F #2D2AAF
split-complementary
#AF2A6A #2AAF2D #2AACAF
monochromatic
#4C122E #7E1E4C #AF2A6A #D24488 #DE75A8

Accessibility & contrast

On white

6.25
#AF2A6A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF2A6A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A6A
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A6A#FFFFFF#000000##FFFFFF
##AF2A6A1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45516C
Deuteranopia (green-blind)
#6A6967
Tritanopia (blue-blind)
#BD1846
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2a6a;
/* rgb */ color: rgb(175, 42, 106);
/* oklch */ color: oklch(51.4% 0.177 356.2);
Tailwind
colors: {
  custom: {
    50: '#cc7094',
    500: '#af2a6a',
    950: '#000000',
  },
}
SCSS
$custom: #af2a6a;
$custom-light: #cc7094;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a6a",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 106
  },
  "hsl": {
    "h": 331.128,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51397,
    "c": 0.17691,
    "h": 356.2
  },
  "luminance": 0.1181
}

Semantic roles & 50–950 ramp

primary
#AF2A6A
secondary
#6FC69C
accent
#E49743
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF2A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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