#AF71EB#AF71EB

#AF71EB is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.5% C 0.182 H 305.5°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#AF71EB
RGBrgb(175, 113, 235)
HSLhsl(270, 75%, 68%)
HSVhsv(270, 52%, 92%)
CMYKcmyk(25.5%, 51.9%, 0%, 7.8%)
CIE-LABlab(58.90, 47.34, -52.63)
CIE-LCHlch(58.90, 70.79, 311.97°)
OKLaboklab(66.55% 0.1055 -0.1479)
OKLCHoklch(66.55% 0.182 305.5)
XYZxyz(38.5766, 26.9226, 81.7455)
Luminance0.2692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71EB #ADEB71
analogous
#7271EB #AF71EB #EB71EA
triadic
#AF71EB #EBAF71 #71EBAF
tetradic
#AF71EB #EB7271 #ADEB71 #71EAEB
square
#AF71EB #EB7271 #ADEB71 #71EAEB
split-complementary
#AF71EB #EAEB71 #71EB72
monochromatic
#721CC6 #913BE3 #AF71EB #CDA7F3 #EBDCFA

Accessibility & contrast

On white

3.29
#AF71EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#AF71EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71EB
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71EB#FFFFFF#000000##000000
##AF71EB1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8CEF
Deuteranopia (green-blind)
#5D8EE8
Tritanopia (blue-blind)
#A587A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af71eb;
/* rgb */ color: rgb(175, 113, 235);
/* oklch */ color: oklch(66.5% 0.182 305.5);
Tailwind
colors: {
  custom: {
    50: '#ca9cf2',
    500: '#af71eb',
    950: '#000000',
  },
}
SCSS
$custom: #af71eb;
$custom-light: #ca9cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af71eb",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 270.492,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66547,
    "c": 0.18164,
    "h": 305.5
  },
  "luminance": 0.26922
}

Semantic roles & 50–950 ramp

primary
#AF71EB
secondary
#DCEEC9
accent
#D70E71
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF71EB

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

Preview Lab → · Contrast checker → · Palette generator →

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