#AF4AAC#AF4AAC

#AF4AAC is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.7% C 0.177 H 328.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AF4AAC
RGBrgb(175, 74, 172)
HSLhsl(302, 41%, 49%)
HSVhsv(302, 58%, 69%)
CMYKcmyk(0%, 57.7%, 1.7%, 31.4%)
CIE-LABlab(48.25, 54.06, -33.47)
CIE-LCHlch(48.25, 63.58, 328.24°)
OKLaboklab(57.66% 0.1516 -0.092)
OKLCHoklch(57.66% 0.177 328.7)
XYZxyz(27.5740, 16.9918, 40.8491)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AAC #4AAF4D
analogous
#804AAF #AF4AAC #AF4A7A
triadic
#AF4AAC #ACAF4A #4AACAF
tetradic
#AF4AAC #AF804A #4AAF4D #4A7AAF
square
#AF4AAC #AF804A #4AAF4D #4A7AAF
split-complementary
#AF4AAC #7AAF4A #4AAF80
monochromatic
#592657 #843882 #AF4AAC #C473C1 #D69ED4

Accessibility & contrast

On white

4.77
#AF4AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AF4AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4AAC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AAC#FFFFFF#000000##FFFFFF
##AF4AAC1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416AAF
Deuteranopia (green-blind)
#6277A9
Tritanopia (blue-blind)
#B45574
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4aac;
/* rgb */ color: rgb(175, 74, 172);
/* oklch */ color: oklch(57.7% 0.177 328.7);
Tailwind
colors: {
  custom: {
    50: '#c982c5',
    500: '#af4aac',
    950: '#000000',
  },
}
SCSS
$custom: #af4aac;
$custom-light: #c982c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4aac",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 172
  },
  "hsl": {
    "h": 301.782,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57658,
    "c": 0.17735,
    "h": 328.7
  },
  "luminance": 0.1699
}

Semantic roles & 50–950 ramp

primary
#AF4AAC
secondary
#92C294
accent
#D05B57
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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