#AF2A81#AF2A81

#AF2A81 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.3% C 0.188 H 345.6°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AF2A81
RGBrgb(175, 42, 129)
HSLhsl(321, 61%, 43%)
HSVhsv(321, 76%, 69%)
CMYKcmyk(0%, 76%, 26.3%, 31.4%)
CIE-LABlab(41.78, 60.12, -17.68)
CIE-LCHlch(41.78, 62.67, 343.61°)
OKLaboklab(52.31% 0.1824 -0.047)
OKLCHoklch(52.31% 0.188 345.6)
XYZxyz(22.4706, 12.3573, 21.9665)
Luminance0.1235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A81 #2AAF58
analogous
#9A2AAF #AF2A81 #AF2A3E
triadic
#AF2A81 #81AF2A #2A81AF
tetradic
#AF2A81 #AF9A2A #2AAF58 #2A3EAF
square
#AF2A81 #AF9A2A #2AAF58 #2A3EAF
split-complementary
#AF2A81 #3EAF2A #2AAF9A
monochromatic
#4C1238 #7E1E5D #AF2A81 #D244A1 #DE75BA

Accessibility & contrast

On white

6.05
#AF2A81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AF2A81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A81
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A81#FFFFFF#000000##FFFFFF
##AF2A811.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5483
Deuteranopia (green-blind)
#646B7E
Tritanopia (blue-blind)
#BB2752
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2a81;
/* rgb */ color: rgb(175, 42, 129);
/* oklch */ color: oklch(52.3% 0.188 345.6);
Tailwind
colors: {
  custom: {
    50: '#cb71a5',
    500: '#af2a81',
    950: '#000000',
  },
}
SCSS
$custom: #af2a81;
$custom-light: #cb71a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a81",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 129
  },
  "hsl": {
    "h": 320.752,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52307,
    "c": 0.18835,
    "h": 345.6
  },
  "luminance": 0.12355
}

Semantic roles & 50–950 ramp

primary
#AF2A81
secondary
#6FC68D
accent
#E47B43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2A81

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

Preview Lab → · Contrast checker → · Palette generator →

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