#AF46BD#AF46BD

#AF46BD is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.1% C 0.198 H 322.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF46BD
RGBrgb(175, 70, 189)
HSLhsl(293, 47%, 51%)
HSVhsv(293, 63%, 74%)
CMYKcmyk(7.4%, 63%, 0%, 25.9%)
CIE-LABlab(48.47, 58.91, -43.05)
CIE-LCHlch(48.47, 72.97, 323.84°)
OKLaboklab(58.11% 0.1578 -0.1197)
OKLCHoklch(58.11% 0.198 322.8)
XYZxyz(29.0538, 17.1700, 49.9180)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF46BD #54BD46
analogous
#7346BD #AF46BD #BD468F
triadic
#AF46BD #BDAF46 #46BDAF
tetradic
#AF46BD #BD7346 #54BD46 #468FBD
square
#AF46BD #BD7346 #54BD46 #468FBD
split-complementary
#AF46BD #8FBD46 #46BD73
monochromatic
#5D2465 #873492 #AF46BD #C373CD #D6A0DD

Accessibility & contrast

On white

4.74
#AF46BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AF46BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF46BD
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF46BD#FFFFFF#000000##FFFFFF
##AF46BD1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af46bd;
/* rgb */ color: rgb(175, 70, 189);
/* oklch */ color: oklch(58.1% 0.198 322.8);
Tailwind
colors: {
  custom: {
    50: '#ca80d1',
    500: '#af46bd',
    950: '#000000',
  },
}
SCSS
$custom: #af46bd;
$custom-light: #ca80d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af46bd",
  "rgb": {
    "r": 175,
    "g": 70,
    "b": 189
  },
  "hsl": {
    "h": 292.941,
    "s": 47.41,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58105,
    "c": 0.19809,
    "h": 322.8
  },
  "luminance": 0.17168
}

Semantic roles & 50–950 ramp

primary
#AF46BD
secondary
#9BCA95
accent
#D75161
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF46BD

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

Preview Lab → · Contrast checker → · Palette generator →

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