#AF48BA#AF48BA

#AF48BA is a mid, vivid purple. Relative luminance 0.173; OKLCH L 58.2% C 0.193 H 323.7°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF48BA
RGBrgb(175, 72, 186)
HSLhsl(294, 45%, 51%)
HSVhsv(294, 61%, 73%)
CMYKcmyk(5.9%, 61.3%, 0%, 27.1%)
CIE-LABlab(48.63, 57.48, -41.06)
CIE-LCHlch(48.63, 70.64, 324.46°)
OKLaboklab(58.17% 0.1553 -0.114)
OKLCHoklch(58.17% 0.193 323.7)
XYZxyz(28.8587, 17.2954, 48.2631)
Luminance0.1729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48BA #53BA48
analogous
#7648BA #AF48BA #BA488C
triadic
#AF48BA #BAAF48 #48BAAF
tetradic
#AF48BA #BA7648 #53BA48 #488CBA
square
#AF48BA #BA7648 #53BA48 #488CBA
split-complementary
#AF48BA #8CBA48 #48BA76
monochromatic
#5D2562 #86368F #AF48BA #C274CB #D6A1DC

Accessibility & contrast

On white

4.71
#AF48BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF48BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF48BA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48BA#FFFFFF#000000##FFFFFF
##AF48BA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336CBD
Deuteranopia (green-blind)
#5A78B7
Tritanopia (blue-blind)
#B2597A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af48ba;
/* rgb */ color: rgb(175, 72, 186);
/* oklch */ color: oklch(58.2% 0.193 323.7);
Tailwind
colors: {
  custom: {
    50: '#ca81cf',
    500: '#af48ba',
    950: '#000000',
  },
}
SCSS
$custom: #af48ba;
$custom-light: #ca81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af48ba",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 294.211,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58166,
    "c": 0.19261,
    "h": 323.7
  },
  "luminance": 0.17294
}

Semantic roles & 50–950 ramp

primary
#AF48BA
secondary
#9AC896
accent
#D5535F
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF48BA

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

Preview Lab → · Contrast checker → · Palette generator →

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