#AF40BD#AF40BD

#AF40BD is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.5% C 0.206 H 323.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF40BD
RGBrgb(175, 64, 189)
HSLhsl(293, 49%, 50%)
HSVhsv(293, 66%, 74%)
CMYKcmyk(7.4%, 66.1%, 0%, 25.9%)
CIE-LABlab(47.57, 61.43, -44.49)
CIE-LCHlch(47.57, 75.85, 324.08°)
OKLaboklab(57.45% 0.1647 -0.1239)
OKLCHoklch(57.45% 0.206 323)
XYZxyz(28.6970, 16.4565, 49.7991)
Luminance0.1646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40BD #4EBD40
analogous
#7140BD #AF40BD #BD408D
triadic
#AF40BD #BDAF40 #40BDAF
tetradic
#AF40BD #BD7140 #4EBD40 #408DBD
square
#AF40BD #BD7140 #4EBD40 #408DBD
split-complementary
#AF40BD #8DBD40 #40BD71
monochromatic
#5A2162 #85318F #AF40BD #C36DCD #D69ADD

Accessibility & contrast

On white

4.89
#AF40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AF40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40BD
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40BD#FFFFFF#000000##FFFFFF
##AF40BD1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2169C1
Deuteranopia (green-blind)
#5375BA
Tritanopia (blue-blind)
#B25479
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af40bd;
/* rgb */ color: rgb(175, 64, 189);
/* oklch */ color: oklch(57.5% 0.206 323.0);
Tailwind
colors: {
  custom: {
    50: '#ca7dd1',
    500: '#af40bd',
    950: '#000000',
  },
}
SCSS
$custom: #af40bd;
$custom-light: #ca7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#af40bd",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 293.28,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57451,
    "c": 0.20608,
    "h": 323
  },
  "luminance": 0.16455
}

Semantic roles & 50–950 ramp

primary
#AF40BD
secondary
#96C990
accent
#D94F5E
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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