#AF1DB1#AF1DB1

#AF1DB1 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.232 H 327.6°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF1DB1
RGBrgb(175, 29, 177)
HSLhsl(299, 72%, 40%)
HSVhsv(299, 84%, 69%)
CMYKcmyk(1.1%, 83.6%, 0%, 30.6%)
CIE-LABlab(43.02, 70.42, -44.70)
CIE-LCHlch(43.02, 83.41, 327.59°)
OKLaboklab(53.98% 0.1957 -0.1243)
OKLCHoklch(53.98% 0.232 327.6)
XYZxyz(26.0540, 13.1690, 42.7561)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1DB1 #1FB11D
analogous
#651DB1 #AF1DB1 #B11D69
triadic
#AF1DB1 #B1AF1D #1DB1AF
tetradic
#AF1DB1 #B1651D #1FB11D #1D69B1
square
#AF1DB1 #B1651D #1FB11D #1D69B1
split-complementary
#AF1DB1 #69B11D #1DB165
monochromatic
#470C48 #7B147C #AF1DB1 #DA2EDD #E463E5

Accessibility & contrast

On white

5.78
#AF1DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF1DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1DB1
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1DB1#FFFFFF#000000##FFFFFF
##AF1DB11.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#4A6CAE
Tritanopia (blue-blind)
#B43A6A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af1db1;
/* rgb */ color: rgb(175, 29, 177);
/* oklch */ color: oklch(54.0% 0.232 327.6);
Tailwind
colors: {
  custom: {
    50: '#cb6fc9',
    500: '#af1db1',
    950: '#000000',
  },
}
SCSS
$custom: #af1db1;
$custom-light: #cb6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af1db1",
  "rgb": {
    "r": 175,
    "g": 29,
    "b": 177
  },
  "hsl": {
    "h": 299.189,
    "s": 71.845,
    "l": 40.392
  },
  "oklch": {
    "l": 0.53979,
    "c": 0.23179,
    "h": 327.6
  },
  "luminance": 0.13167
}

Semantic roles & 50–950 ramp

primary
#AF1DB1
secondary
#61CA60
accent
#EF393C
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF1DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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