#AF81FB#AF81FB

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

Color values

HEX#AF81FB
RGBrgb(175, 129, 251)
HSLhsl(263, 94%, 75%)
HSVhsv(263, 49%, 98%)
CMYKcmyk(30.3%, 48.6%, 0%, 1.6%)
CIE-LABlab(63.16, 42.45, -54.71)
CIE-LCHlch(63.16, 69.24, 307.81°)
OKLaboklab(69.99% 0.0861 -0.154)
OKLCHoklch(69.99% 0.176 299.2)
XYZxyz(42.9379, 31.7792, 95.1199)
Luminance0.3178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF81FB #CDFB81
analogous
#8190FB #AF81FB #EC81FB
triadic
#AF81FB #FBAF81 #81FBAF
tetradic
#AF81FB #FB8190 #CDFB81 #81FBEC
square
#AF81FB #FB8190 #CDFB81 #81FBEC
split-complementary
#AF81FB #FBEC81 #90FB81
monochromatic
#640AF7 #8946F9 #AF81FB #D5BCFD #ECE1FE

Accessibility & contrast

On white

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

On black

7.36
#AF81FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF81FB
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF81FB#FFFFFF#000000##000000
##AF81FB1.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#6498F8
Tritanopia (blue-blind)
#9F98B2
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af81fb;
/* rgb */ color: rgb(175, 129, 251);
/* oklch */ color: oklch(70.0% 0.176 299.2);
Tailwind
colors: {
  custom: {
    50: '#caa6fd',
    500: '#af81fb',
    950: '#000000',
  },
}
SCSS
$custom: #af81fb;
$custom-light: #caa6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af81fb",
  "rgb": {
    "r": 175,
    "g": 129,
    "b": 251
  },
  "hsl": {
    "h": 262.623,
    "s": 93.846,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69985,
    "c": 0.17643,
    "h": 299.2
  },
  "luminance": 0.3178
}

Semantic roles & 50–950 ramp

primary
#AF81FB
secondary
#EAF6D5
accent
#E6008F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF81FB

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

Preview Lab → · Contrast checker → · Palette generator →

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