#AF2A7F#AF2A7F

#AF2A7F is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.2% C 0.187 H 346.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#AF2A7F
RGBrgb(175, 42, 127)
HSLhsl(322, 61%, 43%)
HSVhsv(322, 76%, 69%)
CMYKcmyk(0%, 76%, 27.4%, 31.4%)
CIE-LABlab(41.70, 59.87, -16.58)
CIE-LCHlch(41.70, 62.12, 344.52°)
OKLaboklab(52.22% 0.182 -0.0439)
OKLCHoklch(52.22% 0.187 346.4)
XYZxyz(22.3390, 12.3047, 21.2732)
Luminance0.1230 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A7F #2AAF5A
analogous
#9C2AAF #AF2A7F #AF2A3D
triadic
#AF2A7F #7FAF2A #2A7FAF
tetradic
#AF2A7F #AF9C2A #2AAF5A #2A3DAF
square
#AF2A7F #AF9C2A #2AAF5A #2A3DAF
split-complementary
#AF2A7F #3DAF2A #2AAF9C
monochromatic
#4C1237 #7E1E5B #AF2A7F #D2449F #DE75B8

Accessibility & contrast

On white

6.07
#AF2A7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AF2A7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A7F
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A7F#FFFFFF#000000##FFFFFF
##AF2A7F1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5481
Deuteranopia (green-blind)
#656B7C
Tritanopia (blue-blind)
#BB2651
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2a7f;
/* rgb */ color: rgb(175, 42, 127);
/* oklch */ color: oklch(52.2% 0.187 346.4);
Tailwind
colors: {
  custom: {
    50: '#cb71a4',
    500: '#af2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #af2a7f;
$custom-light: #cb71a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a7f",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 321.654,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5222,
    "c": 0.1872,
    "h": 346.4
  },
  "luminance": 0.12302
}

Semantic roles & 50–950 ramp

primary
#AF2A7F
secondary
#6FC68E
accent
#E47E43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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