#AF71D1#AF71D1

#AF71D1 is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.1% C 0.152 H 312.6°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AF71D1
RGBrgb(175, 113, 209)
HSLhsl(279, 51%, 63%)
HSVhsv(279, 46%, 82%)
CMYKcmyk(16.3%, 45.9%, 0%, 18%)
CIE-LABlab(57.59, 41.51, -40.13)
CIE-LCHlch(57.59, 57.73, 315.97°)
OKLaboklab(65.14% 0.1026 -0.1115)
OKLCHoklch(65.14% 0.152 312.6)
XYZxyz(35.0910, 25.5284, 63.3882)
Luminance0.2553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71D1 #93D171
analogous
#7F71D1 #AF71D1 #D171C3
triadic
#AF71D1 #D1AF71 #71D1AF
tetradic
#AF71D1 #D17F71 #93D171 #71C3D1
square
#AF71D1 #D17F71 #93D171 #71C3D1
split-complementary
#AF71D1 #C3D171 #71D17F
monochromatic
#733197 #9543C2 #AF71D1 #C99FE0 #E3CDEF

Accessibility & contrast

On white

3.44
#AF71D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#AF71D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71D1
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71D1#FFFFFF#000000##000000
##AF71D11.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D87D4
Deuteranopia (green-blind)
#6D8CCE
Tritanopia (blue-blind)
#AC8097
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af71d1;
/* rgb */ color: rgb(175, 113, 209);
/* oklch */ color: oklch(65.1% 0.152 312.6);
Tailwind
colors: {
  custom: {
    50: '#c99bdf',
    500: '#af71d1',
    950: '#000000',
  },
}
SCSS
$custom: #af71d1;
$custom-light: #c99bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#af71d1",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 209
  },
  "hsl": {
    "h": 278.75,
    "s": 51.064,
    "l": 63.137
  },
  "oklch": {
    "l": 0.65141,
    "c": 0.15152,
    "h": 312.6
  },
  "luminance": 0.25528
}

Semantic roles & 50–950 ramp

primary
#AF71D1
secondary
#CAE0BE
accent
#BE275D
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AF71D1

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

Preview Lab → · Contrast checker → · Palette generator →

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