#AF81FA#AF81FA

#AF81FA is a light, vivid violet. Relative luminance 0.317; OKLCH L 69.9% C 0.175 H 299.4°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#AF81FA
RGBrgb(175, 129, 250)
HSLhsl(263, 92%, 74%)
HSVhsv(263, 48%, 98%)
CMYKcmyk(30%, 48.4%, 0%, 2%)
CIE-LABlab(63.11, 42.20, -54.24)
CIE-LCHlch(63.11, 68.73, 307.88°)
OKLaboklab(69.93% 0.086 -0.1526)
OKLCHoklch(69.93% 0.175 299.4)
XYZxyz(42.7807, 31.7163, 94.2919)
Luminance0.3172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81FA #CCFA81
analogous
#8190FA #AF81FA #EC81FA
triadic
#AF81FA #FAAF81 #81FAAF
tetradic
#AF81FA #FA8190 #CCFA81 #81FAEC
square
#AF81FA #FA8190 #CCFA81 #81FAEC
split-complementary
#AF81FA #FAEC81 #90FA81
monochromatic
#640BF5 #8A46F8 #AF81FA #D4BCFC #ECE2FE

Accessibility & contrast

On white

2.86
#AF81FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#AF81FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF81FA
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81FA#FFFFFF#000000##000000
##AF81FA1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5999FE
Deuteranopia (green-blind)
#6498F7
Tritanopia (blue-blind)
#A098B2
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af81fa;
/* rgb */ color: rgb(175, 129, 250);
/* oklch */ color: oklch(69.9% 0.175 299.4);
Tailwind
colors: {
  custom: {
    50: '#caa6fc',
    500: '#af81fa',
    950: '#000000',
  },
}
SCSS
$custom: #af81fa;
$custom-light: #caa6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af81fa",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 250
  },
  "hsl": {
    "h": 262.81,
    "s": 92.366,
    "l": 74.314
  },
  "oklch": {
    "l": 0.69929,
    "c": 0.17519,
    "h": 299.4
  },
  "luminance": 0.31717
}

Semantic roles & 50–950 ramp

primary
#AF81FA
secondary
#E9F6D5
accent
#E6008E
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF81FA

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

Preview Lab → · Contrast checker → · Palette generator →

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