#AF2E81#AF2E81

#AF2E81 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.6% C 0.184 H 345.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AF2E81
RGBrgb(175, 46, 129)
HSLhsl(321, 58%, 43%)
HSVhsv(321, 74%, 69%)
CMYKcmyk(0%, 73.7%, 26.3%, 31.4%)
CIE-LABlab(42.24, 58.82, -16.98)
CIE-LCHlch(42.24, 61.22, 343.90°)
OKLaboklab(52.64% 0.1784 -0.045)
OKLCHoklch(52.64% 0.184 345.8)
XYZxyz(22.6196, 12.6554, 22.0161)
Luminance0.1265 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E81 #2EAF5C
analogous
#9C2EAF #AF2E81 #AF2E41
triadic
#AF2E81 #81AF2E #2E81AF
tetradic
#AF2E81 #AF9C2E #2EAF5C #2E41AF
square
#AF2E81 #AF9C2E #2EAF5C #2E41AF
split-complementary
#AF2E81 #41AF2E #2EAF9C
monochromatic
#4E153A #7F215D #AF2E81 #D04BA0 #DC7BBA

Accessibility & contrast

On white

5.95
#AF2E81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AF2E81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E81
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E81#FFFFFF#000000##FFFFFF
##AF2E811.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5683
Deuteranopia (green-blind)
#656C7E
Tritanopia (blue-blind)
#BB2B54
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2e81;
/* rgb */ color: rgb(175, 46, 129);
/* oklch */ color: oklch(52.6% 0.184 345.8);
Tailwind
colors: {
  custom: {
    50: '#cb73a5',
    500: '#af2e81',
    950: '#000000',
  },
}
SCSS
$custom: #af2e81;
$custom-light: #cb73a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e81",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 321.395,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52642,
    "c": 0.18395,
    "h": 345.8
  },
  "luminance": 0.12653
}

Semantic roles & 50–950 ramp

primary
#AF2E81
secondary
#74C591
accent
#E27E46
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2E81

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

Preview Lab → · Contrast checker → · Palette generator →

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