#AF71DC#AF71DC

#AF71DC is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.7% C 0.164 H 309.3°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AF71DC
RGBrgb(175, 113, 220)
HSLhsl(275, 60%, 65%)
HSVhsv(275, 49%, 86%)
CMYKcmyk(20.5%, 48.6%, 0%, 13.7%)
CIE-LABlab(58.12, 43.93, -45.48)
CIE-LCHlch(58.12, 63.23, 314.01°)
OKLaboklab(65.72% 0.1041 -0.127)
OKLCHoklch(65.72% 0.164 309.3)
XYZxyz(36.5001, 26.0921, 70.8097)
Luminance0.2609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71DC #9EDC71
analogous
#7971DC #AF71DC #DC71D4
triadic
#AF71DC #DCAF71 #71DCAF
tetradic
#AF71DC #DC7971 #9EDC71 #71D4DC
square
#AF71DC #DC7971 #9EDC71 #71D4DC
split-complementary
#AF71DC #D4DC71 #71DC79
monochromatic
#732AA9 #9340D0 #AF71DC #CBA2E8 #E6D3F4

Accessibility & contrast

On white

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

On black

6.22
#AF71DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71DC
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71DC#FFFFFF#000000##000000
##AF71DC1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5689E0
Deuteranopia (green-blind)
#678DD9
Tritanopia (blue-blind)
#A9839C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af71dc;
/* rgb */ color: rgb(175, 113, 220);
/* oklch */ color: oklch(65.7% 0.164 309.3);
Tailwind
colors: {
  custom: {
    50: '#c99be7',
    500: '#af71dc',
    950: '#000000',
  },
}
SCSS
$custom: #af71dc;
$custom-light: #c99be7;
$custom-dark: #000000;
JSON
{
  "hex": "#af71dc",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 274.766,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65717,
    "c": 0.16421,
    "h": 309.3
  },
  "luminance": 0.26092
}

Semantic roles & 50–950 ramp

primary
#AF71DC
secondary
#D2E6C2
accent
#C81D65
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF71DC

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

Preview Lab → · Contrast checker → · Palette generator →

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