#AF2CAC#AF2CAC

#AF2CAC is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.215 H 329.0°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AF2CAC
RGBrgb(175, 44, 172)
HSLhsl(301, 60%, 43%)
HSVhsv(301, 75%, 69%)
CMYKcmyk(0%, 74.9%, 1.7%, 31.4%)
CIE-LABlab(44.08, 65.70, -40.04)
CIE-LCHlch(44.08, 76.95, 328.64°)
OKLaboklab(54.65% 0.1847 -0.1108)
OKLCHoklch(54.65% 0.215 329)
XYZxyz(26.0261, 13.8959, 40.3331)
Luminance0.1389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CAC #2CAF2F
analogous
#702CAF #AF2CAC #AF2C6A
triadic
#AF2CAC #ACAF2C #2CACAF
tetradic
#AF2CAC #AF702C #2CAF2F #2C6AAF
square
#AF2CAC #AF702C #2CAF2F #2C6AAF
split-complementary
#AF2CAC #6AAF2C #2CAF70
monochromatic
#4D134C #7E207C #AF2CAC #D147CE #DD78DB

Accessibility & contrast

On white

5.56
#AF2CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AF2CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CAC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CAC#FFFFFF#000000##FFFFFF
##AF2CAC1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155DAF
Deuteranopia (green-blind)
#526EA9
Tritanopia (blue-blind)
#B5406A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2cac;
/* rgb */ color: rgb(175, 44, 172);
/* oklch */ color: oklch(54.6% 0.215 329.0);
Tailwind
colors: {
  custom: {
    50: '#cb74c5',
    500: '#af2cac',
    950: '#000000',
  },
}
SCSS
$custom: #af2cac;
$custom-light: #cb74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2cac",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 301.374,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54645,
    "c": 0.21542,
    "h": 329
  },
  "luminance": 0.13894
}

Semantic roles & 50–950 ramp

primary
#AF2CAC
secondary
#72C574
accent
#E34845
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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