#AF71D9#AF71D9

#AF71D9 is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.6% C 0.161 H 310.2°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#AF71D9
RGBrgb(175, 113, 217)
HSLhsl(276, 58%, 65%)
HSVhsv(276, 48%, 85%)
CMYKcmyk(19.4%, 47.9%, 0%, 14.9%)
CIE-LABlab(57.97, 43.26, -44.03)
CIE-LCHlch(57.97, 61.72, 314.50°)
OKLaboklab(65.56% 0.1037 -0.1228)
OKLCHoklch(65.56% 0.161 310.2)
XYZxyz(36.1064, 25.9346, 68.7360)
Luminance0.2593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71D9 #9BD971
analogous
#7B71D9 #AF71D9 #D971CF
triadic
#AF71D9 #D9AF71 #71D9AF
tetradic
#AF71D9 #D97B71 #9BD971 #71CFD9
square
#AF71D9 #D97B71 #9BD971 #71CFD9
split-complementary
#AF71D9 #CFD971 #71D97B
monochromatic
#732CA4 #9441CC #AF71D9 #CAA1E6 #E5D2F3

Accessibility & contrast

On white

3.39
#AF71D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#AF71D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71D9
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71D9#FFFFFF#000000##000000
##AF71D91.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5888DD
Deuteranopia (green-blind)
#698CD6
Tritanopia (blue-blind)
#AA829B
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af71d9;
/* rgb */ color: rgb(175, 113, 217);
/* oklch */ color: oklch(65.6% 0.161 310.2);
Tailwind
colors: {
  custom: {
    50: '#c99be5',
    500: '#af71d9',
    950: '#000000',
  },
}
SCSS
$custom: #af71d9;
$custom-light: #c99be5;
$custom-dark: #000000;
JSON
{
  "hex": "#af71d9",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 217
  },
  "hsl": {
    "h": 275.769,
    "s": 57.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.65557,
    "c": 0.16073,
    "h": 310.2
  },
  "luminance": 0.25934
}

Semantic roles & 50–950 ramp

primary
#AF71D9
secondary
#CFE5C1
accent
#C52063
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF71D9

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

Preview Lab → · Contrast checker → · Palette generator →

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