#AF2A7A#AF2A7A

#AF2A7A is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.0% C 0.184 H 348.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AF2A7A
RGBrgb(175, 42, 122)
HSLhsl(324, 61%, 43%)
HSVhsv(324, 76%, 69%)
CMYKcmyk(0%, 76%, 30.3%, 31.4%)
CIE-LABlab(41.50, 59.26, -13.79)
CIE-LCHlch(41.50, 60.85, 346.90°)
OKLaboklab(52.01% 0.1809 -0.0362)
OKLCHoklch(52.01% 0.184 348.7)
XYZxyz(22.0212, 12.1776, 19.5994)
Luminance0.1217 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A7A #2AAF5F
analogous
#A22AAF #AF2A7A #AF2A37
triadic
#AF2A7A #7AAF2A #2A7AAF
tetradic
#AF2A7A #AFA22A #2AAF5F #2A37AF
square
#AF2A7A #AFA22A #2AAF5F #2A37AF
split-complementary
#AF2A7A #37AF2A #2AAFA2
monochromatic
#4C1235 #7E1E58 #AF2A7A #D2449A #DE75B4

Accessibility & contrast

On white

6.11
#AF2A7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF2A7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A7A
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A7A#FFFFFF#000000##FFFFFF
##AF2A7A1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F537C
Deuteranopia (green-blind)
#666A77
Tritanopia (blue-blind)
#BC234E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2a7a;
/* rgb */ color: rgb(175, 42, 122);
/* oklch */ color: oklch(52.0% 0.184 348.7);
Tailwind
colors: {
  custom: {
    50: '#cb71a0',
    500: '#af2a7a',
    950: '#000000',
  },
}
SCSS
$custom: #af2a7a;
$custom-light: #cb71a0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a7a",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 323.91,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5201,
    "c": 0.18446,
    "h": 348.7
  },
  "luminance": 0.12175
}

Semantic roles & 50–950 ramp

primary
#AF2A7A
secondary
#6FC692
accent
#E48443
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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