#AF48BF#AF48BF

#AF48BF is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.4% C 0.197 H 322.1°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF48BF
RGBrgb(175, 72, 191)
HSLhsl(292, 48%, 52%)
HSVhsv(292, 62%, 75%)
CMYKcmyk(8.4%, 62.3%, 0%, 25.1%)
CIE-LABlab(48.90, 58.41, -43.54)
CIE-LCHlch(48.90, 72.85, 323.30°)
OKLaboklab(58.45% 0.1555 -0.1212)
OKLCHoklch(58.45% 0.197 322.1)
XYZxyz(29.3995, 17.5118, 51.1117)
Luminance0.1751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48BF #58BF48
analogous
#7448BF #AF48BF #BF4894
triadic
#AF48BF #BFAF48 #48BFAF
tetradic
#AF48BF #BF7448 #58BF48 #4894BF
square
#AF48BF #BF7448 #58BF48 #4894BF
split-complementary
#AF48BF #94BF48 #48BF74
monochromatic
#5F2468 #883496 #AF48BF #C375CF #D7A3DF

Accessibility & contrast

On white

4.66
#AF48BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AF48BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF48BF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48BF#FFFFFF#000000##FFFFFF
##AF48BF1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6DC3
Deuteranopia (green-blind)
#5778BC
Tritanopia (blue-blind)
#B15B7D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af48bf;
/* rgb */ color: rgb(175, 72, 191);
/* oklch */ color: oklch(58.4% 0.197 322.1);
Tailwind
colors: {
  custom: {
    50: '#ca82d3',
    500: '#af48bf',
    950: '#000000',
  },
}
SCSS
$custom: #af48bf;
$custom-light: #ca82d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af48bf",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 291.933,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58448,
    "c": 0.19713,
    "h": 322.1
  },
  "luminance": 0.1751
}

Semantic roles & 50–950 ramp

primary
#AF48BF
secondary
#9ECC97
accent
#D85062
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF48BF

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

Preview Lab → · Contrast checker → · Palette generator →

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