#AF2A6D#AF2A6D

#AF2A6D is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.5% C 0.178 H 354.8°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AF2A6D
RGBrgb(175, 42, 109)
HSLhsl(330, 61%, 43%)
HSVhsv(330, 76%, 69%)
CMYKcmyk(0%, 76%, 37.7%, 31.4%)
CIE-LABlab(41.02, 57.78, -6.43)
CIE-LCHlch(41.02, 58.14, 353.65°)
OKLaboklab(51.51% 0.1774 -0.0162)
OKLCHoklch(51.51% 0.178 354.8)
XYZxyz(21.2689, 11.8766, 15.6374)
Luminance0.1187 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A6D #2AAF6C
analogous
#AE2AAF #AF2A6D #AF2A2B
triadic
#AF2A6D #6DAF2A #2A6DAF
tetradic
#AF2A6D #AFAE2A #2AAF6C #2A2BAF
square
#AF2A6D #AFAE2A #2AAF6C #2A2BAF
split-complementary
#AF2A6D #2BAF2A #2AAFAE
monochromatic
#4C1230 #7E1E4E #AF2A6D #D2448C #DE75AA

Accessibility & contrast

On white

6.22
#AF2A6D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AF2A6D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A6D
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A6D#FFFFFF#000000##FFFFFF
##AF2A6D1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44516F
Deuteranopia (green-blind)
#696A6A
Tritanopia (blue-blind)
#BD1A48
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2a6d;
/* rgb */ color: rgb(175, 42, 109);
/* oklch */ color: oklch(51.5% 0.178 354.8);
Tailwind
colors: {
  custom: {
    50: '#cc7196',
    500: '#af2a6d',
    950: '#000000',
  },
}
SCSS
$custom: #af2a6d;
$custom-light: #cc7196;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a6d",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 109
  },
  "hsl": {
    "h": 329.774,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51505,
    "c": 0.17817,
    "h": 354.8
  },
  "luminance": 0.11874
}

Semantic roles & 50–950 ramp

primary
#AF2A6D
secondary
#6FC69A
accent
#E49343
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF2A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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