#AF1DB3#AF1DB3

#AF1DB3 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.1% C 0.233 H 327.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF1DB3
RGBrgb(175, 29, 179)
HSLhsl(298, 72%, 41%)
HSVhsv(298, 84%, 70%)
CMYKcmyk(2.2%, 83.8%, 0%, 29.8%)
CIE-LABlab(43.14, 70.73, -45.69)
CIE-LCHlch(43.14, 84.21, 327.14°)
OKLaboklab(54.1% 0.1955 -0.1272)
OKLCHoklch(54.1% 0.233 327)
XYZxyz(26.2548, 13.2493, 43.8136)
Luminance0.1325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1DB3 #21B31D
analogous
#641DB3 #AF1DB3 #B31D6C
triadic
#AF1DB3 #B3AF1D #1DB3AF
tetradic
#AF1DB3 #B3641D #21B31D #1D6CB3
square
#AF1DB3 #B3641D #21B31D #1D6CB3
split-complementary
#AF1DB3 #6CB31D #1DB364
monochromatic
#480C4A #7C147E #AF1DB3 #D930DD #E364E6

Accessibility & contrast

On white

5.75
#AF1DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF1DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1DB3
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1DB3#FFFFFF#000000##FFFFFF
##AF1DB31.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#486CB0
Tritanopia (blue-blind)
#B43B6B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af1db3;
/* rgb */ color: rgb(175, 29, 179);
/* oklch */ color: oklch(54.1% 0.233 327.0);
Tailwind
colors: {
  custom: {
    50: '#cb6fca',
    500: '#af1db3',
    950: '#000000',
  },
}
SCSS
$custom: #af1db3;
$custom-light: #cb6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#af1db3",
  "rgb": {
    "r": 175,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 298.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54102,
    "c": 0.23322,
    "h": 327
  },
  "luminance": 0.13247
}

Semantic roles & 50–950 ramp

primary
#AF1DB3
secondary
#64CB61
accent
#EF393E
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF1DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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