#AF48BD#AF48BD

#AF48BD is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.3% C 0.195 H 322.7°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF48BD
RGBrgb(175, 72, 189)
HSLhsl(293, 47%, 51%)
HSVhsv(293, 62%, 74%)
CMYKcmyk(7.4%, 61.9%, 0%, 25.9%)
CIE-LABlab(48.79, 58.04, -42.55)
CIE-LCHlch(48.79, 71.97, 323.75°)
OKLaboklab(58.33% 0.1554 -0.1183)
OKLCHoklch(58.33% 0.195 322.7)
XYZxyz(29.1810, 17.4244, 49.9604)
Luminance0.1742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48BD #56BD48
analogous
#7448BD #AF48BD #BD4890
triadic
#AF48BD #BDAF48 #48BDAF
tetradic
#AF48BD #BD7448 #56BD48 #4890BD
square
#AF48BD #BD7448 #56BD48 #4890BD
split-complementary
#AF48BD #90BD48 #48BD74
monochromatic
#5E2566 #883593 #AF48BD #C375CD #D6A2DD

Accessibility & contrast

On white

4.68
#AF48BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF48BD
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48BD#FFFFFF#000000##FFFFFF
##AF48BD1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306CC1
Deuteranopia (green-blind)
#5878BA
Tritanopia (blue-blind)
#B15A7C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af48bd;
/* rgb */ color: rgb(175, 72, 189);
/* oklch */ color: oklch(58.3% 0.195 322.7);
Tailwind
colors: {
  custom: {
    50: '#ca82d1',
    500: '#af48bd',
    950: '#000000',
  },
}
SCSS
$custom: #af48bd;
$custom-light: #ca82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af48bd",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 189
  },
  "hsl": {
    "h": 292.821,
    "s": 46.988,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58334,
    "c": 0.19531,
    "h": 322.7
  },
  "luminance": 0.17423
}

Semantic roles & 50–950 ramp

primary
#AF48BD
secondary
#9DCA97
accent
#D75161
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF48BD

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

Preview Lab → · Contrast checker → · Palette generator →

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