#AF81FC#AF81FC

#AF81FC is a light, vivid violet. Relative luminance 0.318; OKLCH L 70.0% C 0.178 H 299.0°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#AF81FC
RGBrgb(175, 129, 252)
HSLhsl(262, 95%, 75%)
HSVhsv(262, 49%, 99%)
CMYKcmyk(30.6%, 48.8%, 0%, 1.2%)
CIE-LABlab(63.21, 42.69, -55.17)
CIE-LCHlch(63.21, 69.76, 307.73°)
OKLaboklab(70.04% 0.0862 -0.1554)
OKLCHoklch(70.04% 0.178 299)
XYZxyz(43.0959, 31.8424, 95.9523)
Luminance0.3184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81FC #CEFC81
analogous
#8191FC #AF81FC #ED81FC
triadic
#AF81FC #FCAF81 #81FCAF
tetradic
#AF81FC #FC8191 #CEFC81 #81FCED
square
#AF81FC #FC8191 #CEFC81 #81FCED
split-complementary
#AF81FC #FCED81 #91FC81
monochromatic
#6309F9 #8945FB #AF81FC #D5BDFD #ECE1FE

Accessibility & contrast

On white

2.85
#AF81FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#AF81FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF81FC
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81FC#FFFFFF#000000##000000
##AF81FC1.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#6398F9
Tritanopia (blue-blind)
#9F98B3
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af81fc;
/* rgb */ color: rgb(175, 129, 252);
/* oklch */ color: oklch(70.0% 0.178 299.0);
Tailwind
colors: {
  custom: {
    50: '#caa6fe',
    500: '#af81fc',
    950: '#000000',
  },
}
SCSS
$custom: #af81fc;
$custom-light: #caa6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af81fc",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 262.439,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.70041,
    "c": 0.17766,
    "h": 299
  },
  "luminance": 0.31843
}

Semantic roles & 50–950 ramp

primary
#AF81FC
secondary
#EAF7D4
accent
#E60090
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF81FC

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

Preview Lab → · Contrast checker → · Palette generator →

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