#AF71DF#AF71DF

#AF71DF is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.9% C 0.168 H 308.5°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#AF71DF
RGBrgb(175, 113, 223)
HSLhsl(274, 63%, 66%)
HSVhsv(274, 49%, 87%)
CMYKcmyk(21.5%, 49.3%, 0%, 12.5%)
CIE-LABlab(58.28, 44.60, -46.92)
CIE-LCHlch(58.28, 64.74, 313.55°)
OKLaboklab(65.88% 0.1044 -0.1312)
OKLCHoklch(65.88% 0.168 308.5)
XYZxyz(36.9010, 26.2524, 72.9210)
Luminance0.2625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71DF #A1DF71
analogous
#7871DF #AF71DF #DF71D8
triadic
#AF71DF #DFAF71 #71DFAF
tetradic
#AF71DF #DF7871 #A1DF71 #71D8DF
square
#AF71DF #DF7871 #A1DF71 #71D8DF
split-complementary
#AF71DF #D8DF71 #71DF78
monochromatic
#7327AE #933FD4 #AF71DF #CBA3EA #E7D5F6

Accessibility & contrast

On white

3.36
#AF71DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#AF71DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71DF
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71DF#FFFFFF#000000##000000
##AF71DF1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5489E3
Deuteranopia (green-blind)
#658DDC
Tritanopia (blue-blind)
#A8849E
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af71df;
/* rgb */ color: rgb(175, 113, 223);
/* oklch */ color: oklch(65.9% 0.168 308.5);
Tailwind
colors: {
  custom: {
    50: '#c99be9',
    500: '#af71df',
    950: '#000000',
  },
}
SCSS
$custom: #af71df;
$custom-light: #c99be9;
$custom-dark: #000000;
JSON
{
  "hex": "#af71df",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 273.818,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.65879,
    "c": 0.16769,
    "h": 308.5
  },
  "luminance": 0.26252
}

Semantic roles & 50–950 ramp

primary
#AF71DF
secondary
#D4E8C4
accent
#CB1B68
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF71DF

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

Preview Lab → · Contrast checker → · Palette generator →

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