#AF71DD#AF71DD

#AF71DD is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.8% C 0.165 H 309.0°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#AF71DD
RGBrgb(175, 113, 221)
HSLhsl(274, 61%, 65%)
HSVhsv(274, 49%, 87%)
CMYKcmyk(20.8%, 48.9%, 0%, 13.3%)
CIE-LABlab(58.17, 44.15, -45.96)
CIE-LCHlch(58.17, 63.73, 313.85°)
OKLaboklab(65.77% 0.1042 -0.1284)
OKLCHoklch(65.77% 0.165 309)
XYZxyz(36.6330, 26.1452, 71.5093)
Luminance0.2615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71DD #9FDD71
analogous
#7971DD #AF71DD #DD71D5
triadic
#AF71DD #DDAF71 #71DDAF
tetradic
#AF71DD #DD7971 #9FDD71 #71D5DD
square
#AF71DD #DD7971 #9FDD71 #71D5DD
split-complementary
#AF71DD #D5DD71 #71DD79
monochromatic
#7329AB #9340D1 #AF71DD #CBA2E9 #E7D4F5

Accessibility & contrast

On white

3.37
#AF71DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#AF71DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71DD
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71DD#FFFFFF#000000##000000
##AF71DD1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5589E1
Deuteranopia (green-blind)
#678DDA
Tritanopia (blue-blind)
#A9839D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af71dd;
/* rgb */ color: rgb(175, 113, 221);
/* oklch */ color: oklch(65.8% 0.165 309.0);
Tailwind
colors: {
  custom: {
    50: '#c99be8',
    500: '#af71dd',
    950: '#000000',
  },
}
SCSS
$custom: #af71dd;
$custom-light: #c99be8;
$custom-dark: #000000;
JSON
{
  "hex": "#af71dd",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 274.444,
    "s": 61.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65771,
    "c": 0.16537,
    "h": 309
  },
  "luminance": 0.26145
}

Semantic roles & 50–950 ramp

primary
#AF71DD
secondary
#D2E7C3
accent
#C91C66
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF71DD

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

Preview Lab → · Contrast checker → · Palette generator →

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