#AF81EB#AF81EB

#AF81EB is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.1% C 0.157 H 302.5°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#AF81EB
RGBrgb(175, 129, 235)
HSLhsl(266, 73%, 71%)
HSVhsv(266, 45%, 92%)
CMYKcmyk(25.5%, 45.1%, 0%, 7.8%)
CIE-LABlab(62.35, 38.60, -47.17)
CIE-LCHlch(62.35, 60.95, 309.30°)
OKLaboklab(69.12% 0.0842 -0.132)
OKLCHoklch(69.12% 0.157 302.5)
XYZxyz(40.5216, 30.8126, 82.3938)
Luminance0.3081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81EB #BDEB81
analogous
#8188EB #AF81EB #E481EB
triadic
#AF81EB #EBAF81 #81EBAF
tetradic
#AF81EB #EB8188 #BDEB81 #81EBE4
square
#AF81EB #EB8188 #BDEB81 #81EBE4
split-complementary
#AF81EB #EBE481 #88EB81
monochromatic
#6D21D1 #8D4CE3 #AF81EB #D1B6F3 #EEE5FB

Accessibility & contrast

On white

2.93
#AF81EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#AF81EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF81EB
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81EB#FFFFFF#000000##000000
##AF81EB1.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496EF
Deuteranopia (green-blind)
#6E96E8
Tritanopia (blue-blind)
#A493AB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af81eb;
/* rgb */ color: rgb(175, 129, 235);
/* oklch */ color: oklch(69.1% 0.157 302.5);
Tailwind
colors: {
  custom: {
    50: '#c9a6f2',
    500: '#af81eb',
    950: '#000000',
  },
}
SCSS
$custom: #af81eb;
$custom-light: #c9a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af81eb",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 266.038,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.69115,
    "c": 0.15657,
    "h": 302.5
  },
  "luminance": 0.30813
}

Semantic roles & 50–950 ramp

primary
#AF81EB
secondary
#E6F2D6
accent
#D51180
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF81EB

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

Preview Lab → · Contrast checker → · Palette generator →

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