#AF80FC#AF80FC

#AF80FC is a light, vivid violet. Relative luminance 0.316; OKLCH L 69.9% C 0.179 H 299.2°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#AF80FC
RGBrgb(175, 128, 252)
HSLhsl(263, 95%, 75%)
HSVhsv(263, 49%, 99%)
CMYKcmyk(30.6%, 49.2%, 0%, 1.2%)
CIE-LABlab(62.99, 43.24, -55.52)
CIE-LCHlch(62.99, 70.37, 307.91°)
OKLaboklab(69.88% 0.0875 -0.1564)
OKLCHoklch(69.88% 0.179 299.2)
XYZxyz(42.9649, 31.5802, 95.9086)
Luminance0.3158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF80FC #CDFC80
analogous
#808FFC #AF80FC #ED80FC
triadic
#AF80FC #FCAF80 #80FCAF
tetradic
#AF80FC #FC808F #CDFC80 #80FCED
square
#AF80FC #FC808F #CDFC80 #80FCED
split-complementary
#AF80FC #FCED80 #8FFC80
monochromatic
#6408F9 #8944FB #AF80FC #D5BCFD #ECE1FE

Accessibility & contrast

On white

2.87
#AF80FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#AF80FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF80FC
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF80FC#FFFFFF#000000##000000
##AF80FC1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5698FF
Deuteranopia (green-blind)
#6297F9
Tritanopia (blue-blind)
#9F97B2
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af80fc;
/* rgb */ color: rgb(175, 128, 252);
/* oklch */ color: oklch(69.9% 0.179 299.2);
Tailwind
colors: {
  custom: {
    50: '#caa6fe',
    500: '#af80fc',
    950: '#000000',
  },
}
SCSS
$custom: #af80fc;
$custom-light: #caa6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af80fc",
  "rgb": {
    "r": 175,
    "g": 128,
    "b": 252
  },
  "hsl": {
    "h": 262.742,
    "s": 95.385,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69879,
    "c": 0.17917,
    "h": 299.2
  },
  "luminance": 0.31581
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF80FC

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

Preview Lab → · Contrast checker → · Palette generator →

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