#AF45BB#AF45BB

#AF45BB is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.9% C 0.198 H 323.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF45BB
RGBrgb(175, 69, 187)
HSLhsl(294, 46%, 50%)
HSVhsv(294, 63%, 73%)
CMYKcmyk(6.4%, 63.1%, 0%, 26.7%)
CIE-LABlab(48.21, 58.97, -42.31)
CIE-LCHlch(48.21, 72.58, 324.34°)
OKLaboklab(57.88% 0.1589 -0.1176)
OKLCHoklch(57.88% 0.198 323.5)
XYZxyz(28.7761, 16.9597, 48.7619)
Luminance0.1696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45BB #51BB45
analogous
#7445BB #AF45BB #BB458C
triadic
#AF45BB #BBAF45 #45BBAF
tetradic
#AF45BB #BB7445 #51BB45 #458CBB
square
#AF45BB #BB7445 #51BB45 #458CBB
split-complementary
#AF45BB #8CBB45 #45BB74
monochromatic
#5C2462 #85348F #AF45BB #C272CB #D69FDC

Accessibility & contrast

On white

4.78
#AF45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AF45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45BB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45BB#FFFFFF#000000##FFFFFF
##AF45BB1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABF
Deuteranopia (green-blind)
#5777B8
Tritanopia (blue-blind)
#B2577A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af45bb;
/* rgb */ color: rgb(175, 69, 187);
/* oklch */ color: oklch(57.9% 0.198 323.5);
Tailwind
colors: {
  custom: {
    50: '#ca80d0',
    500: '#af45bb',
    950: '#000000',
  },
}
SCSS
$custom: #af45bb;
$custom-light: #ca80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af45bb",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 293.898,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57878,
    "c": 0.19768,
    "h": 323.5
  },
  "luminance": 0.16958
}

Semantic roles & 50–950 ramp

primary
#AF45BB
secondary
#99C894
accent
#D6525F
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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