#AF82FC#AF82FC

#AF82FC is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.2% C 0.176 H 298.8°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#AF82FC
RGBrgb(175, 130, 252)
HSLhsl(262, 95%, 75%)
HSVhsv(262, 48%, 99%)
CMYKcmyk(30.6%, 48.4%, 0%, 1.2%)
CIE-LABlab(63.43, 42.14, -54.83)
CIE-LCHlch(63.43, 69.15, 307.55°)
OKLaboklab(70.2% 0.0849 -0.1543)
OKLCHoklch(70.2% 0.176 298.8)
XYZxyz(43.2283, 32.1071, 95.9964)
Luminance0.3211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF82FC #CFFC82
analogous
#8292FC #AF82FC #EC82FC
triadic
#AF82FC #FCAF82 #82FCAF
tetradic
#AF82FC #FC8292 #CFFC82 #82FCEC
square
#AF82FC #FC8292 #CFFC82 #82FCEC
split-complementary
#AF82FC #FCEC82 #92FC82
monochromatic
#620AF9 #8946FB #AF82FC #D5BEFD #ECE1FE

Accessibility & contrast

On white

2.83
#AF82FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#AF82FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF82FC
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF82FC#FFFFFF#000000##000000
##AF82FC1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#599AFF
Deuteranopia (green-blind)
#6499F9
Tritanopia (blue-blind)
#9F99B3
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af82fc;
/* rgb */ color: rgb(175, 130, 252);
/* oklch */ color: oklch(70.2% 0.176 298.8);
Tailwind
colors: {
  custom: {
    50: '#caa7fe',
    500: '#af82fc',
    950: '#000000',
  },
}
SCSS
$custom: #af82fc;
$custom-light: #caa7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af82fc",
  "rgb": {
    "r": 175,
    "g": 130,
    "b": 252
  },
  "hsl": {
    "h": 262.131,
    "s": 95.313,
    "l": 74.902
  },
  "oklch": {
    "l": 0.70204,
    "c": 0.17615,
    "h": 298.8
  },
  "luminance": 0.32107
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF82FC

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

Preview Lab → · Contrast checker → · Palette generator →

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