#AF41AC#AF41AC

#AF41AC is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.6% C 0.190 H 328.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF41AC
RGBrgb(175, 65, 172)
HSLhsl(302, 46%, 47%)
HSVhsv(302, 63%, 69%)
CMYKcmyk(0%, 62.9%, 1.7%, 31.4%)
CIE-LABlab(46.81, 58.01, -35.73)
CIE-LCHlch(46.81, 68.14, 328.37°)
OKLaboklab(56.61% 0.1628 -0.0985)
OKLCHoklch(56.61% 0.19 328.8)
XYZxyz(27.0156, 15.8750, 40.6630)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41AC #41AF44
analogous
#7B41AF #AF41AC #AF4175
triadic
#AF41AC #ACAF41 #41ACAF
tetradic
#AF41AC #AF7B41 #41AF44 #4175AF
square
#AF41AC #AF7B41 #41AF44 #4175AF
split-complementary
#AF41AC #75AF41 #41AF7B
monochromatic
#562054 #823080 #AF41AC #C667C4 #D793D5

Accessibility & contrast

On white

5.03
#AF41AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AF41AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41AC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41AC#FFFFFF#000000##FFFFFF
##AF41AC1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3666AF
Deuteranopia (green-blind)
#5D74A9
Tritanopia (blue-blind)
#B54E71
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af41ac;
/* rgb */ color: rgb(175, 65, 172);
/* oklch */ color: oklch(56.6% 0.190 328.8);
Tailwind
colors: {
  custom: {
    50: '#ca7dc5',
    500: '#af41ac',
    950: '#000000',
  },
}
SCSS
$custom: #af41ac;
$custom-light: #ca7dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#af41ac",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 301.636,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56609,
    "c": 0.1903,
    "h": 328.8
  },
  "luminance": 0.15873
}

Semantic roles & 50–950 ramp

primary
#AF41AC
secondary
#89C28B
accent
#D55652
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41AC

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

Preview Lab → · Contrast checker → · Palette generator →

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