#AF4DAC#AF4DAC

#AF4DAC is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.0% C 0.173 H 328.7°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF4DAC
RGBrgb(175, 77, 172)
HSLhsl(302, 39%, 49%)
HSVhsv(302, 56%, 69%)
CMYKcmyk(0%, 56%, 1.7%, 31.4%)
CIE-LABlab(48.76, 52.67, -32.67)
CIE-LCHlch(48.76, 61.97, 328.19°)
OKLaboklab(58.03% 0.1477 -0.0897)
OKLCHoklch(58.03% 0.173 328.7)
XYZxyz(27.7791, 17.4020, 40.9175)
Luminance0.1740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DAC #4DAF50
analogous
#814DAF #AF4DAC #AF4D7B
triadic
#AF4DAC #ACAF4D #4DACAF
tetradic
#AF4DAC #AF814D #4DAF50 #4D7BAF
square
#AF4DAC #AF814D #4DAF50 #4D7BAF
split-complementary
#AF4DAC #7BAF4D #4DAF81
monochromatic
#5A2858 #853A82 #AF4DAC #C376C1 #D6A1D4

Accessibility & contrast

On white

4.69
#AF4DAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AF4DAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4DAC
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DAC#FFFFFF#000000##FFFFFF
##AF4DAC1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456BAF
Deuteranopia (green-blind)
#6479A9
Tritanopia (blue-blind)
#B45775
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4dac;
/* rgb */ color: rgb(175, 77, 172);
/* oklch */ color: oklch(58.0% 0.173 328.7);
Tailwind
colors: {
  custom: {
    50: '#c984c5',
    500: '#af4dac',
    950: '#000000',
  },
}
SCSS
$custom: #af4dac;
$custom-light: #c984c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dac",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 172
  },
  "hsl": {
    "h": 301.837,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58034,
    "c": 0.17279,
    "h": 328.7
  },
  "luminance": 0.174
}

Semantic roles & 50–950 ramp

primary
#AF4DAC
secondary
#95C397
accent
#CF5D59
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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