#AF2DAC#AF2DAC

#AF2DAC is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.214 H 329.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF2DAC
RGBrgb(175, 45, 172)
HSLhsl(301, 59%, 43%)
HSVhsv(301, 74%, 69%)
CMYKcmyk(0%, 74.3%, 1.7%, 31.4%)
CIE-LABlab(44.19, 65.39, -39.87)
CIE-LCHlch(44.19, 76.59, 328.63°)
OKLaboklab(54.72% 0.1839 -0.1103)
OKLCHoklch(54.72% 0.214 329)
XYZxyz(26.0638, 13.9713, 40.3457)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DAC #2DAF30
analogous
#712DAF #AF2DAC #AF2D6B
triadic
#AF2DAC #ACAF2D #2DACAF
tetradic
#AF2DAC #AF712D #2DAF30 #2D6BAF
square
#AF2DAC #AF712D #2DAF30 #2D6BAF
split-complementary
#AF2DAC #6BAF2D #2DAF71
monochromatic
#4E144C #7E207C #AF2DAC #D049CD #DD7ADA

Accessibility & contrast

On white

5.54
#AF2DAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AF2DAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DAC
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DAC#FFFFFF#000000##FFFFFF
##AF2DAC1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2dac;
/* rgb */ color: rgb(175, 45, 172);
/* oklch */ color: oklch(54.7% 0.214 329.0);
Tailwind
colors: {
  custom: {
    50: '#cb74c5',
    500: '#af2dac',
    950: '#000000',
  },
}
SCSS
$custom: #af2dac;
$custom-light: #cb74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2dac",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 301.385,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54722,
    "c": 0.2144,
    "h": 329
  },
  "luminance": 0.13969
}

Semantic roles & 50–950 ramp

primary
#AF2DAC
secondary
#73C575
accent
#E24946
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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