#AF2C84#AF2C84

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

Color values

HEX#AF2C84
RGBrgb(175, 44, 132)
HSLhsl(320, 60%, 43%)
HSVhsv(320, 75%, 69%)
CMYKcmyk(0%, 74.9%, 24.6%, 31.4%)
CIE-LABlab(42.13, 59.87, -18.99)
CIE-LCHlch(42.13, 62.81, 342.40°)
OKLaboklab(52.6% 0.181 -0.0506)
OKLCHoklch(52.6% 0.188 344.4)
XYZxyz(22.7457, 12.5837, 23.0564)
Luminance0.1258 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C84 #2CAF57
analogous
#982CAF #AF2C84 #AF2C42
triadic
#AF2C84 #84AF2C #2C84AF
tetradic
#AF2C84 #AF982C #2CAF57 #2C42AF
square
#AF2C84 #AF982C #2CAF57 #2C42AF
split-complementary
#AF2C84 #42AF2C #2CAF98
monochromatic
#4D133A #7E205F #AF2C84 #D147A4 #DD78BC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2C84#FFFFFF#000000##FFFFFF
##AF2C841.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)
#3C5586
Deuteranopia (green-blind)
#646B81
Tritanopia (blue-blind)
#BB2B54
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2c84;
/* rgb */ color: rgb(175, 44, 132);
/* oklch */ color: oklch(52.6% 0.188 344.4);
Tailwind
colors: {
  custom: {
    50: '#cb72a8',
    500: '#af2c84',
    950: '#000000',
  },
}
SCSS
$custom: #af2c84;
$custom-light: #cb72a8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c84",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 132
  },
  "hsl": {
    "h": 319.695,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52602,
    "c": 0.18795,
    "h": 344.4
  },
  "luminance": 0.12581
}

Semantic roles & 50–950 ramp

primary
#AF2C84
secondary
#72C58D
accent
#E37945
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2C84

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

Preview Lab → · Contrast checker → · Palette generator →

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