#AF4CAF#AF4CAF

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

Color values

HEX#AF4CAF
RGBrgb(175, 76, 175)
HSLhsl(300, 39%, 49%)
HSVhsv(300, 57%, 69%)
CMYKcmyk(0%, 56.6%, 0%, 31.4%)
CIE-LABlab(48.73, 53.67, -34.47)
CIE-LCHlch(48.73, 63.78, 327.29°)
OKLaboklab(58.06% 0.1493 -0.0949)
OKLCHoklch(58.06% 0.177 327.6)
XYZxyz(28.0011, 17.3797, 42.4289)
Luminance0.1738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CAF #4CAF4C
analogous
#7E4CAF #AF4CAF #AF4C7E
triadic
#AF4CAF #AFAF4C #4CAFAF
tetradic
#AF4CAF #AF7E4C #4CAF4C #4C7EAF
square
#AF4CAF #AF7E4C #4CAF4C #4C7EAF
split-complementary
#AF4CAF #7EAF4C #4CAF7E
monochromatic
#5A275A #843984 #AF4CAF #C375C3 #D6A0D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4CAF#FFFFFF#000000##FFFFFF
##AF4CAF1.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)
#416BB2
Deuteranopia (green-blind)
#6278AC
Tritanopia (blue-blind)
#B45876
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4caf;
/* rgb */ color: rgb(175, 76, 175);
/* oklch */ color: oklch(58.1% 0.177 327.6);
Tailwind
colors: {
  custom: {
    50: '#c983c7',
    500: '#af4caf',
    950: '#000000',
  },
}
SCSS
$custom: #af4caf;
$custom-light: #c983c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4caf",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58061,
    "c": 0.17695,
    "h": 327.6
  },
  "luminance": 0.17378
}

Semantic roles & 50–950 ramp

primary
#AF4CAF
secondary
#94C294
accent
#CF5858
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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