#AF71D2#AF71D2

#AF71D2 is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.2% C 0.153 H 312.3°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AF71D2
RGBrgb(175, 113, 210)
HSLhsl(278, 52%, 63%)
HSVhsv(278, 46%, 82%)
CMYKcmyk(16.7%, 46.2%, 0%, 17.6%)
CIE-LABlab(57.63, 41.73, -40.62)
CIE-LCHlch(57.63, 58.23, 315.77°)
OKLaboklab(65.19% 0.1027 -0.1129)
OKLCHoklch(65.19% 0.153 312.3)
XYZxyz(35.2152, 25.5781, 64.0422)
Luminance0.2558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71D2 #94D271
analogous
#7E71D2 #AF71D2 #D271C4
triadic
#AF71D2 #D2AF71 #71D2AF
tetradic
#AF71D2 #D27E71 #94D271 #71C4D2
square
#AF71D2 #D27E71 #94D271 #71C4D2
split-complementary
#AF71D2 #C4D271 #71D27E
monochromatic
#733098 #9543C3 #AF71D2 #C99FE1 #E3CEEF

Accessibility & contrast

On white

3.43
#AF71D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#AF71D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71D2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71D2#FFFFFF#000000##000000
##AF71D21.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C87D5
Deuteranopia (green-blind)
#6D8CCF
Tritanopia (blue-blind)
#AC8098
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af71d2;
/* rgb */ color: rgb(175, 113, 210);
/* oklch */ color: oklch(65.2% 0.153 312.3);
Tailwind
colors: {
  custom: {
    50: '#c99be0',
    500: '#af71d2',
    950: '#000000',
  },
}
SCSS
$custom: #af71d2;
$custom-light: #c99be0;
$custom-dark: #000000;
JSON
{
  "hex": "#af71d2",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 278.351,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.65192,
    "c": 0.15267,
    "h": 312.3
  },
  "luminance": 0.25577
}

Semantic roles & 50–950 ramp

primary
#AF71D2
secondary
#CBE1BE
accent
#BF265D
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AF71D2

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

Preview Lab → · Contrast checker → · Palette generator →

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