#AF71DE#AF71DE

#AF71DE is a light, vivid violet. Relative luminance 0.262; OKLCH L 65.8% C 0.167 H 308.8°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AF71DE
RGBrgb(175, 113, 222)
HSLhsl(274, 62%, 66%)
HSVhsv(274, 49%, 87%)
CMYKcmyk(21.2%, 49.1%, 0%, 12.9%)
CIE-LABlab(58.23, 44.38, -46.44)
CIE-LCHlch(58.23, 64.23, 313.70°)
OKLaboklab(65.83% 0.1043 -0.1298)
OKLCHoklch(65.83% 0.167 308.8)
XYZxyz(36.7666, 26.1987, 72.2131)
Luminance0.2620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71DE #A0DE71
analogous
#7871DE #AF71DE #DE71D7
triadic
#AF71DE #DEAF71 #71DEAF
tetradic
#AF71DE #DE7871 #A0DE71 #71D7DE
square
#AF71DE #DE7871 #A0DE71 #71D7DE
split-complementary
#AF71DE #D7DE71 #71DE78
monochromatic
#7328AD #933FD2 #AF71DE #CBA3EA #E7D4F5

Accessibility & contrast

On white

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

On black

6.24
#AF71DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71DE
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71DE#FFFFFF#000000##000000
##AF71DE1.003.376.246.24
#FFFFFF3.371.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5489E2
Deuteranopia (green-blind)
#668DDB
Tritanopia (blue-blind)
#A9839D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af71de;
/* rgb */ color: rgb(175, 113, 222);
/* oklch */ color: oklch(65.8% 0.167 308.8);
Tailwind
colors: {
  custom: {
    50: '#c99be9',
    500: '#af71de',
    950: '#000000',
  },
}
SCSS
$custom: #af71de;
$custom-light: #c99be9;
$custom-dark: #000000;
JSON
{
  "hex": "#af71de",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 222
  },
  "hsl": {
    "h": 274.128,
    "s": 62.286,
    "l": 65.686
  },
  "oklch": {
    "l": 0.65825,
    "c": 0.16653,
    "h": 308.8
  },
  "luminance": 0.26198
}

Semantic roles & 50–950 ramp

primary
#AF71DE
secondary
#D3E8C3
accent
#CA1B67
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF71DE

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

Preview Lab → · Contrast checker → · Palette generator →

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