#AF2C81#AF2C81

#AF2C81 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.5% C 0.186 H 345.7°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AF2C81
RGBrgb(175, 44, 129)
HSLhsl(321, 60%, 43%)
HSVhsv(321, 75%, 69%)
CMYKcmyk(0%, 74.9%, 26.3%, 31.4%)
CIE-LABlab(42.00, 59.48, -17.34)
CIE-LCHlch(42.00, 61.96, 343.75°)
OKLaboklab(52.47% 0.1804 -0.046)
OKLCHoklch(52.47% 0.186 345.7)
XYZxyz(22.5433, 12.5028, 21.9907)
Luminance0.1250 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C81 #2CAF5A
analogous
#9B2CAF #AF2C81 #AF2C3F
triadic
#AF2C81 #81AF2C #2C81AF
tetradic
#AF2C81 #AF9B2C #2CAF5A #2C3FAF
square
#AF2C81 #AF9B2C #2CAF5A #2C3FAF
split-complementary
#AF2C81 #3FAF2C #2CAF9B
monochromatic
#4D1339 #7E205D #AF2C81 #D147A1 #DD78BA

Accessibility & contrast

On white

6.00
#AF2C81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF2C81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C81
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C81#FFFFFF#000000##FFFFFF
##AF2C811.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5583
Deuteranopia (green-blind)
#656B7E
Tritanopia (blue-blind)
#BB2953
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2c81;
/* rgb */ color: rgb(175, 44, 129);
/* oklch */ color: oklch(52.5% 0.186 345.7);
Tailwind
colors: {
  custom: {
    50: '#cb72a5',
    500: '#af2c81',
    950: '#000000',
  },
}
SCSS
$custom: #af2c81;
$custom-light: #cb72a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c81",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 321.069,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52471,
    "c": 0.18619,
    "h": 345.7
  },
  "luminance": 0.125
}

Semantic roles & 50–950 ramp

primary
#AF2C81
secondary
#72C58F
accent
#E37C45
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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