#AF45BD#AF45BD

#AF45BD is a mid, vivid purple. Relative luminance 0.170; OKLCH L 58.0% C 0.199 H 322.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF45BD
RGBrgb(175, 69, 189)
HSLhsl(293, 48%, 51%)
HSVhsv(293, 63%, 74%)
CMYKcmyk(7.4%, 63.5%, 0%, 25.9%)
CIE-LABlab(48.32, 59.34, -43.30)
CIE-LCHlch(48.32, 73.46, 323.88°)
OKLaboklab(57.99% 0.159 -0.1204)
OKLCHoklch(57.99% 0.199 322.9)
XYZxyz(28.9917, 17.0459, 49.8974)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45BD #53BD45
analogous
#7345BD #AF45BD #BD458F
triadic
#AF45BD #BDAF45 #45BDAF
tetradic
#AF45BD #BD7345 #53BD45 #458FBD
square
#AF45BD #BD7345 #53BD45 #458FBD
split-complementary
#AF45BD #8FBD45 #45BD73
monochromatic
#5D2464 #863491 #AF45BD #C272CD #D69FDD

Accessibility & contrast

On white

4.76
#AF45BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AF45BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45BD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45BD#FFFFFF#000000##FFFFFF
##AF45BD1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6BC1
Deuteranopia (green-blind)
#5677BA
Tritanopia (blue-blind)
#B2587B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af45bd;
/* rgb */ color: rgb(175, 69, 189);
/* oklch */ color: oklch(58.0% 0.199 322.9);
Tailwind
colors: {
  custom: {
    50: '#ca80d1',
    500: '#af45bd',
    950: '#000000',
  },
}
SCSS
$custom: #af45bd;
$custom-light: #ca80d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af45bd",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 293,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57992,
    "c": 0.19946,
    "h": 322.9
  },
  "luminance": 0.17044
}

Semantic roles & 50–950 ramp

primary
#AF45BD
secondary
#9ACA94
accent
#D75160
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF45BD

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

Preview Lab → · Contrast checker → · Palette generator →

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