#AF71DB#AF71DB

#AF71DB is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.7% C 0.163 H 309.6°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AF71DB
RGBrgb(175, 113, 219)
HSLhsl(275, 60%, 65%)
HSVhsv(275, 48%, 86%)
CMYKcmyk(20.1%, 48.4%, 0%, 14.1%)
CIE-LABlab(58.07, 43.71, -44.99)
CIE-LCHlch(58.07, 62.73, 314.17°)
OKLaboklab(65.66% 0.1039 -0.1256)
OKLCHoklch(65.66% 0.163 309.6)
XYZxyz(36.3681, 26.0393, 70.1143)
Luminance0.2604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71DB #9DDB71
analogous
#7A71DB #AF71DB #DB71D2
triadic
#AF71DB #DBAF71 #71DBAF
tetradic
#AF71DB #DB7A71 #9DDB71 #71D2DB
square
#AF71DB #DB7A71 #9DDB71 #71D2DB
split-complementary
#AF71DB #D2DB71 #71DB7A
monochromatic
#732AA7 #9340CF #AF71DB #CBA2E7 #E6D3F4

Accessibility & contrast

On white

3.38
#AF71DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#AF71DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71DB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71DB#FFFFFF#000000##000000
##AF71DB1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5689DF
Deuteranopia (green-blind)
#688DD8
Tritanopia (blue-blind)
#A9829C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af71db;
/* rgb */ color: rgb(175, 113, 219);
/* oklch */ color: oklch(65.7% 0.163 309.6);
Tailwind
colors: {
  custom: {
    50: '#c99be6',
    500: '#af71db',
    950: '#000000',
  },
}
SCSS
$custom: #af71db;
$custom-light: #c99be6;
$custom-dark: #000000;
JSON
{
  "hex": "#af71db",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 275.094,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.65663,
    "c": 0.16305,
    "h": 309.6
  },
  "luminance": 0.26039
}

Semantic roles & 50–950 ramp

primary
#AF71DB
secondary
#D1E6C2
accent
#C71E64
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF71DB

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

Preview Lab → · Contrast checker → · Palette generator →

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