#AF2E82#AF2E82

#AF2E82 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.7% C 0.185 H 345.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AF2E82
RGBrgb(175, 46, 130)
HSLhsl(321, 58%, 43%)
HSVhsv(321, 74%, 69%)
CMYKcmyk(0%, 73.7%, 25.7%, 31.4%)
CIE-LABlab(42.28, 58.95, -17.53)
CIE-LCHlch(42.28, 61.50, 343.44°)
OKLaboklab(52.69% 0.1786 -0.0466)
OKLCHoklch(52.69% 0.185 345.4)
XYZxyz(22.6864, 12.6821, 22.3679)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E82 #2EAF5B
analogous
#9B2EAF #AF2E82 #AF2E42
triadic
#AF2E82 #82AF2E #2E82AF
tetradic
#AF2E82 #AF9B2E #2EAF5B #2E42AF
square
#AF2E82 #AF9B2E #2EAF5B #2E42AF
split-complementary
#AF2E82 #42AF2E #2EAF9B
monochromatic
#4E153A #7F215E #AF2E82 #D04BA1 #DC7BBA

Accessibility & contrast

On white

5.94
#AF2E82 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF2E82 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E82
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E82#FFFFFF#000000##FFFFFF
##AF2E821.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5684
Deuteranopia (green-blind)
#656C7F
Tritanopia (blue-blind)
#BB2C54
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2e82;
/* rgb */ color: rgb(175, 46, 130);
/* oklch */ color: oklch(52.7% 0.185 345.4);
Tailwind
colors: {
  custom: {
    50: '#cb73a6',
    500: '#af2e82',
    950: '#000000',
  },
}
SCSS
$custom: #af2e82;
$custom-light: #cb73a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e82",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 320.93,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52685,
    "c": 0.18453,
    "h": 345.4
  },
  "luminance": 0.1268
}

Semantic roles & 50–950 ramp

primary
#AF2E82
secondary
#74C590
accent
#E27C46
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2E82

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

Preview Lab → · Contrast checker → · Palette generator →

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