#AF4DB1#AF4DB1

#AF4DB1 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.3% C 0.177 H 326.8°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF4DB1
RGBrgb(175, 77, 177)
HSLhsl(299, 39%, 50%)
HSVhsv(299, 56%, 69%)
CMYKcmyk(1.1%, 56.5%, 0%, 30.6%)
CIE-LABlab(49.00, 53.56, -35.22)
CIE-LCHlch(49.00, 64.10, 326.67°)
OKLaboklab(58.29% 0.1482 -0.0971)
OKLCHoklch(58.29% 0.177 326.8)
XYZxyz(28.2684, 17.5977, 43.4942)
Luminance0.1760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DB1 #4FB14D
analogous
#7D4DB1 #AF4DB1 #B14D81
triadic
#AF4DB1 #B1AF4D #4DB1AF
tetradic
#AF4DB1 #B17D4D #4FB14D #4D81B1
square
#AF4DB1 #B17D4D #4FB14D #4D81B1
split-complementary
#AF4DB1 #81B14D #4DB17D
monochromatic
#5B285C #853A86 #AF4DB1 #C277C4 #D5A2D6

Accessibility & contrast

On white

4.65
#AF4DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AF4DB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4DB1
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4DB1#FFFFFF#000000##FFFFFF
##AF4DB11.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416CB4
Deuteranopia (green-blind)
#6279AE
Tritanopia (blue-blind)
#B45978
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4db1;
/* rgb */ color: rgb(175, 77, 177);
/* oklch */ color: oklch(58.3% 0.177 326.8);
Tailwind
colors: {
  custom: {
    50: '#c984c8',
    500: '#af4db1',
    950: '#000000',
  },
}
SCSS
$custom: #af4db1;
$custom-light: #c984c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4db1",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 177
  },
  "hsl": {
    "h": 298.8,
    "s": 39.37,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5829,
    "c": 0.1772,
    "h": 326.8
  },
  "luminance": 0.17596
}

Semantic roles & 50–950 ramp

primary
#AF4DB1
secondary
#97C496
accent
#CF595B
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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