#AF81DA#AF81DA

#AF81DA is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.3% C 0.135 H 306.9°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#AF81DA
RGBrgb(175, 129, 218)
HSLhsl(271, 55%, 68%)
HSVhsv(271, 41%, 85%)
CMYKcmyk(19.7%, 40.8%, 0%, 14.5%)
CIE-LABlab(61.55, 34.67, -38.97)
CIE-LCHlch(61.55, 52.16, 311.66°)
OKLaboklab(68.25% 0.0814 -0.1082)
OKLCHoklch(68.25% 0.135 306.9)
XYZxyz(38.1819, 29.8768, 70.0714)
Luminance0.2988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81DA #ACDA81
analogous
#8281DA #AF81DA #DA81D8
triadic
#AF81DA #DAAF81 #81DAAF
tetradic
#AF81DA #DA8281 #ACDA81 #81D8DA
square
#AF81DA #DA8281 #ACDA81 #81D8DA
split-complementary
#AF81DA #D8DA81 #81DA82
monochromatic
#7233AE #9152CC #AF81DA #CDB0E8 #EBE0F6

Accessibility & contrast

On white

3.01
#AF81DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#AF81DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF81DA
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81DA#FFFFFF#000000##000000
##AF81DA1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D93DD
Deuteranopia (green-blind)
#7895D8
Tritanopia (blue-blind)
#A98FA3
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af81da;
/* rgb */ color: rgb(175, 129, 218);
/* oklch */ color: oklch(68.3% 0.135 306.9);
Tailwind
colors: {
  custom: {
    50: '#c8a6e6',
    500: '#af81da',
    950: '#000000',
  },
}
SCSS
$custom: #af81da;
$custom-light: #c8a6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af81da",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 218
  },
  "hsl": {
    "h": 271.011,
    "s": 54.601,
    "l": 68.039
  },
  "oklch": {
    "l": 0.6825,
    "c": 0.13545,
    "h": 306.9
  },
  "luminance": 0.29876
}

Semantic roles & 50–950 ramp

primary
#AF81DA
secondary
#DBE9CE
accent
#C22370
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF81DA

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

Preview Lab → · Contrast checker → · Palette generator →

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