#AF2A6C#AF2A6C

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

Color values

HEX#AF2A6C
RGBrgb(175, 42, 108)
HSLhsl(330, 61%, 43%)
HSVhsv(330, 76%, 69%)
CMYKcmyk(0%, 76%, 38.3%, 31.4%)
CIE-LABlab(40.99, 57.68, -5.85)
CIE-LCHlch(40.99, 57.97, 354.21°)
OKLaboklab(51.47% 0.1771 -0.0147)
OKLCHoklch(51.47% 0.178 355.3)
XYZxyz(21.2154, 11.8552, 15.3555)
Luminance0.1185 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A6C #2AAF6D
analogous
#AF2AAE #AF2A6C #AF2B2A
triadic
#AF2A6C #6CAF2A #2A6CAF
tetradic
#AF2A6C #AEAF2A #2AAF6D #2B2AAF
square
#AF2A6C #AEAF2A #2AAF6D #2B2AAF
split-complementary
#AF2A6C #2AAF2B #2AAEAF
monochromatic
#4C122F #7E1E4E #AF2A6C #D2448B #DE75A9

Accessibility & contrast

On white

6.23
#AF2A6C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2A6C
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A6C#FFFFFF#000000##FFFFFF
##AF2A6C1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45516E
Deuteranopia (green-blind)
#6A6A69
Tritanopia (blue-blind)
#BD1A47
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2a6c;
/* rgb */ color: rgb(175, 42, 108);
/* oklch */ color: oklch(51.5% 0.178 355.3);
Tailwind
colors: {
  custom: {
    50: '#cc7096',
    500: '#af2a6c',
    950: '#000000',
  },
}
SCSS
$custom: #af2a6c;
$custom-light: #cc7096;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a6c",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 108
  },
  "hsl": {
    "h": 330.226,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51468,
    "c": 0.17774,
    "h": 355.3
  },
  "luminance": 0.11853
}

Semantic roles & 50–950 ramp

primary
#AF2A6C
secondary
#6FC69B
accent
#E49543
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF2A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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