#AF2D82#AF2D82

#AF2D82 is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.6% C 0.186 H 345.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AF2D82
RGBrgb(175, 45, 130)
HSLhsl(321, 59%, 43%)
HSVhsv(321, 74%, 69%)
CMYKcmyk(0%, 74.3%, 25.7%, 31.4%)
CIE-LABlab(42.16, 59.28, -17.71)
CIE-LCHlch(42.16, 61.87, 343.37°)
OKLaboklab(52.6% 0.1796 -0.0471)
OKLCHoklch(52.6% 0.186 345.3)
XYZxyz(22.6478, 12.6049, 22.3550)
Luminance0.1260 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D82 #2DAF5A
analogous
#9B2DAF #AF2D82 #AF2D41
triadic
#AF2D82 #82AF2D #2D82AF
tetradic
#AF2D82 #AF9B2D #2DAF5A #2D41AF
square
#AF2D82 #AF9B2D #2DAF5A #2D41AF
split-complementary
#AF2D82 #41AF2D #2DAF9B
monochromatic
#4E143A #7E205E #AF2D82 #D049A1 #DD7ABA

Accessibility & contrast

On white

5.97
#AF2D82 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF2D82 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D82
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D82#FFFFFF#000000##FFFFFF
##AF2D821.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5584
Deuteranopia (green-blind)
#656B7F
Tritanopia (blue-blind)
#BB2B54
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2d82;
/* rgb */ color: rgb(175, 45, 130);
/* oklch */ color: oklch(52.6% 0.186 345.3);
Tailwind
colors: {
  custom: {
    50: '#cb72a6',
    500: '#af2d82',
    950: '#000000',
  },
}
SCSS
$custom: #af2d82;
$custom-light: #cb72a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d82",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 320.769,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52599,
    "c": 0.18567,
    "h": 345.3
  },
  "luminance": 0.12602
}

Semantic roles & 50–950 ramp

primary
#AF2D82
secondary
#73C58F
accent
#E27C46
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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