#AF71EC#AF71EC

#AF71EC is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.6% C 0.183 H 305.3°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#AF71EC
RGBrgb(175, 113, 236)
HSLhsl(270, 76%, 68%)
HSVhsv(270, 52%, 93%)
CMYKcmyk(25.8%, 52.1%, 0%, 7.5%)
CIE-LABlab(58.96, 47.57, -53.10)
CIE-LCHlch(58.96, 71.29, 311.86°)
OKLaboklab(66.6% 0.1055 -0.1493)
OKLCHoklch(66.6% 0.183 305.3)
XYZxyz(38.7214, 26.9806, 82.5085)
Luminance0.2698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71EC #AEEC71
analogous
#7171EC #AF71EC #EC71EB
triadic
#AF71EC #ECAF71 #71ECAF
tetradic
#AF71EC #EC7171 #AEEC71 #71EBEC
square
#AF71EC #EC7171 #AEEC71 #71EBEC
split-complementary
#AF71EC #EBEC71 #71EC71
monochromatic
#721BC8 #913BE5 #AF71EC #CDA7F3 #ECDDFA

Accessibility & contrast

On white

3.28
#AF71EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#AF71EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71EC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71EC#FFFFFF#000000##000000
##AF71EC1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#498CF0
Deuteranopia (green-blind)
#5D8EE9
Tritanopia (blue-blind)
#A587A4
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af71ec;
/* rgb */ color: rgb(175, 113, 236);
/* oklch */ color: oklch(66.6% 0.183 305.3);
Tailwind
colors: {
  custom: {
    50: '#ca9cf3',
    500: '#af71ec',
    950: '#000000',
  },
}
SCSS
$custom: #af71ec;
$custom-light: #ca9cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#af71ec",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 270.244,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66604,
    "c": 0.18281,
    "h": 305.3
  },
  "luminance": 0.2698
}

Semantic roles & 50–950 ramp

primary
#AF71EC
secondary
#DCEFCA
accent
#D90D72
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF71EC

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

Preview Lab → · Contrast checker → · Palette generator →

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