#AF2C82#AF2C82

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

Color values

HEX#AF2C82
RGBrgb(175, 44, 130)
HSLhsl(321, 60%, 43%)
HSVhsv(321, 75%, 69%)
CMYKcmyk(0%, 74.9%, 25.7%, 31.4%)
CIE-LABlab(42.05, 59.61, -17.89)
CIE-LCHlch(42.05, 62.24, 343.30°)
OKLaboklab(52.51% 0.1806 -0.0475)
OKLCHoklch(52.51% 0.187 345.3)
XYZxyz(22.6101, 12.5295, 22.3425)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C82 #2CAF59
analogous
#9A2CAF #AF2C82 #AF2C40
triadic
#AF2C82 #82AF2C #2C82AF
tetradic
#AF2C82 #AF9A2C #2CAF59 #2C40AF
square
#AF2C82 #AF9A2C #2CAF59 #2C40AF
split-complementary
#AF2C82 #40AF2C #2CAF9A
monochromatic
#4D1339 #7E205E #AF2C82 #D147A2 #DD78BA

Accessibility & contrast

On white

5.99
#AF2C82 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF2C82 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C82
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C82#FFFFFF#000000##FFFFFF
##AF2C821.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2c82;
/* rgb */ color: rgb(175, 44, 130);
/* oklch */ color: oklch(52.5% 0.187 345.3);
Tailwind
colors: {
  custom: {
    50: '#cb72a6',
    500: '#af2c82',
    950: '#000000',
  },
}
SCSS
$custom: #af2c82;
$custom-light: #cb72a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c82",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 320.611,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52514,
    "c": 0.18676,
    "h": 345.3
  },
  "luminance": 0.12527
}

Semantic roles & 50–950 ramp

primary
#AF2C82
secondary
#72C58E
accent
#E37B45
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2C82

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

Preview Lab → · Contrast checker → · Palette generator →

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