#AF84FB#AF84FB

#AF84FB is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.5% C 0.172 H 298.6°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#AF84FB
RGBrgb(175, 132, 251)
HSLhsl(262, 94%, 75%)
HSVhsv(262, 47%, 98%)
CMYKcmyk(30.3%, 47.4%, 0%, 1.6%)
CIE-LABlab(63.82, 40.79, -53.66)
CIE-LCHlch(63.82, 67.40, 307.24°)
OKLaboklab(70.48% 0.0822 -0.1509)
OKLCHoklch(70.48% 0.172 298.6)
XYZxyz(43.3389, 32.5811, 95.2536)
Luminance0.3258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF84FB #D0FB84
analogous
#8494FB #AF84FB #EB84FB
triadic
#AF84FB #FBAF84 #84FBAF
tetradic
#AF84FB #FB8494 #D0FB84 #84FBEB
square
#AF84FB #FB8494 #D0FB84 #84FBEB
split-complementary
#AF84FB #FBEB84 #94FB84
monochromatic
#620DF7 #8849F9 #AF84FB #D6BFFD #ECE1FE

Accessibility & contrast

On white

2.79
#AF84FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#AF84FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF84FB
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF84FB#FFFFFF#000000##000000
##AF84FB1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9BFF
Deuteranopia (green-blind)
#679AF8
Tritanopia (blue-blind)
#9F9AB4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af84fb;
/* rgb */ color: rgb(175, 132, 251);
/* oklch */ color: oklch(70.5% 0.172 298.6);
Tailwind
colors: {
  custom: {
    50: '#caa8fd',
    500: '#af84fb',
    950: '#000000',
  },
}
SCSS
$custom: #af84fb;
$custom-light: #caa8fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af84fb",
  "rgb": {
    "r": 175,
    "g": 132,
    "b": 251
  },
  "hsl": {
    "h": 261.681,
    "s": 93.701,
    "l": 75.098
  },
  "oklch": {
    "l": 0.70478,
    "c": 0.17188,
    "h": 298.6
  },
  "luminance": 0.32582
}

Semantic roles & 50–950 ramp

primary
#AF84FB
secondary
#EAF6D5
accent
#E60093
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF84FB

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

Preview Lab → · Contrast checker → · Palette generator →

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