#AF48BB#AF48BB

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

Color values

HEX#AF48BB
RGBrgb(175, 72, 187)
HSLhsl(294, 46%, 51%)
HSVhsv(294, 61%, 73%)
CMYKcmyk(6.4%, 61.5%, 0%, 26.7%)
CIE-LABlab(48.68, 57.67, -41.56)
CIE-LCHlch(48.68, 71.08, 324.22°)
OKLaboklab(58.22% 0.1553 -0.1154)
OKLCHoklch(58.22% 0.194 323.4)
XYZxyz(28.9654, 17.3381, 48.8250)
Luminance0.1734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF48BB #54BB48
analogous
#7548BB #AF48BB #BB488D
triadic
#AF48BB #BBAF48 #48BBAF
tetradic
#AF48BB #BB7548 #54BB48 #488DBB
square
#AF48BB #BB7548 #54BB48 #488DBB
split-complementary
#AF48BB #8DBB48 #48BB75
monochromatic
#5D2564 #873690 #AF48BB #C375CC #D6A1DC

Accessibility & contrast

On white

4.70
#AF48BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AF48BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF48BB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF48BB#FFFFFF#000000##FFFFFF
##AF48BB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326CBF
Deuteranopia (green-blind)
#5978B8
Tritanopia (blue-blind)
#B2597B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af48bb;
/* rgb */ color: rgb(175, 72, 187);
/* oklch */ color: oklch(58.2% 0.194 323.4);
Tailwind
colors: {
  custom: {
    50: '#ca81d0',
    500: '#af48bb',
    950: '#000000',
  },
}
SCSS
$custom: #af48bb;
$custom-light: #ca81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af48bb",
  "rgb": {
    "r": 175,
    "g": 72,
    "b": 187
  },
  "hsl": {
    "h": 293.739,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58222,
    "c": 0.19351,
    "h": 323.4
  },
  "luminance": 0.17337
}

Semantic roles & 50–950 ramp

primary
#AF48BB
secondary
#9BC996
accent
#D55260
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF48BB

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

Preview Lab → · Contrast checker → · Palette generator →

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