#AF48AC#AF48AC

#AF48AC is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.4% C 0.180 H 328.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF48AC
RGBrgb(175, 72, 172)
HSLhsl(302, 42%, 48%)
HSVhsv(302, 59%, 69%)
CMYKcmyk(0%, 58.9%, 1.7%, 31.4%)
CIE-LABlab(47.92, 54.97, -33.99)
CIE-LCHlch(47.92, 64.63, 328.27°)
OKLaboklab(57.42% 0.1542 -0.0935)
OKLCHoklch(57.42% 0.18 328.8)
XYZxyz(27.4426, 16.7290, 40.8053)
Luminance0.1673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48AC #48AF4B
analogous
#7E48AF #AF48AC #AF4878
triadic
#AF48AC #ACAF48 #48ACAF
tetradic
#AF48AC #AF7E48 #48AF4B #4878AF
square
#AF48AC #AF7E48 #48AF4B #4878AF
split-complementary
#AF48AC #78AF48 #48AF7E
monochromatic
#582457 #843681 #AF48AC #C470C2 #D69BD4

Accessibility & contrast

On white

4.83
#AF48AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF48AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF48AC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48AC#FFFFFF#000000##FFFFFF
##AF48AC1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F69AF
Deuteranopia (green-blind)
#6177A9
Tritanopia (blue-blind)
#B55473
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af48ac;
/* rgb */ color: rgb(175, 72, 172);
/* oklch */ color: oklch(57.4% 0.180 328.8);
Tailwind
colors: {
  custom: {
    50: '#ca81c5',
    500: '#af48ac',
    950: '#000000',
  },
}
SCSS
$custom: #af48ac;
$custom-light: #ca81c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af48ac",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 172
  },
  "hsl": {
    "h": 301.748,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57415,
    "c": 0.18033,
    "h": 328.8
  },
  "luminance": 0.16727
}

Semantic roles & 50–950 ramp

primary
#AF48AC
secondary
#90C292
accent
#D25A56
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF48AC

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

Preview Lab → · Contrast checker → · Palette generator →

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