#AF71EF#AF71EF

#AF71EF is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.8% C 0.186 H 304.6°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#AF71EF
RGBrgb(175, 113, 239)
HSLhsl(270, 80%, 69%)
HSVhsv(270, 53%, 94%)
CMYKcmyk(26.8%, 52.7%, 0%, 6.3%)
CIE-LABlab(59.12, 48.27, -54.51)
CIE-LCHlch(59.12, 72.81, 311.52°)
OKLaboklab(66.78% 0.1057 -0.1534)
OKLCHoklch(66.78% 0.186 304.6)
XYZxyz(39.1609, 27.1564, 84.8233)
Luminance0.2716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71EF #B1EF71
analogous
#7172EF #AF71EF #EE71EF
triadic
#AF71EF #EFAF71 #71EFAF
tetradic
#AF71EF #EF7172 #B1EF71 #71EFEE
square
#AF71EF #EF7172 #B1EF71 #71EFEE
split-complementary
#AF71EF #EFEE71 #72EF71
monochromatic
#7117CE #903AE9 #AF71EF #CEA8F5 #EDDFFB

Accessibility & contrast

On white

3.27
#AF71EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#AF71EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71EF
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71EF#FFFFFF#000000##000000
##AF71EF1.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#478DF3
Deuteranopia (green-blind)
#5A8EEC
Tritanopia (blue-blind)
#A488A5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af71ef;
/* rgb */ color: rgb(175, 113, 239);
/* oklch */ color: oklch(66.8% 0.186 304.6);
Tailwind
colors: {
  custom: {
    50: '#ca9cf5',
    500: '#af71ef',
    950: '#000000',
  },
}
SCSS
$custom: #af71ef;
$custom-light: #ca9cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#af71ef",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 269.524,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.66777,
    "c": 0.1863,
    "h": 304.6
  },
  "luminance": 0.27156
}

Semantic roles & 50–950 ramp

primary
#AF71EF
secondary
#DEF0CB
accent
#DC0974
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF71EF

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

Preview Lab → · Contrast checker → · Palette generator →

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