#AF80FF#AF80FF

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

Color values

HEX#AF80FF
RGBrgb(175, 128, 255)
HSLhsl(262, 100%, 75%)
HSVhsv(262, 50%, 100%)
CMYKcmyk(31.4%, 49.8%, 0%, 0%)
CIE-LABlab(63.15, 43.97, -56.91)
CIE-LCHlch(63.15, 71.92, 307.69°)
OKLaboklab(70.05% 0.0877 -0.1604)
OKLCHoklch(70.05% 0.183 298.7)
XYZxyz(43.4440, 31.7719, 98.4321)
Luminance0.3177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF80FF #D0FF80
analogous
#8090FF #AF80FF #EF80FF
triadic
#AF80FF #FFAF80 #80FFAF
tetradic
#AF80FF #FF8090 #D0FF80 #80FFEF
square
#AF80FF #FF8090 #D0FF80 #80FFEF
split-complementary
#AF80FF #FFEF80 #90FF80
monochromatic
#6206FF #8843FF #AF80FF #D6BDFF #ECE0FF

Accessibility & contrast

On white

2.86
#AF80FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#AF80FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF80FF
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF80FF#FFFFFF#000000##000000
##AF80FF1.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5499FF
Deuteranopia (green-blind)
#5F98FC
Tritanopia (blue-blind)
#9E98B4
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af80ff;
/* rgb */ color: rgb(175, 128, 255);
/* oklch */ color: oklch(70.0% 0.183 298.7);
Tailwind
colors: {
  custom: {
    50: '#caa6ff',
    500: '#af80ff',
    950: '#000000',
  },
}
SCSS
$custom: #af80ff;
$custom-light: #caa6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af80ff",
  "rgb": {
    "r": 175,
    "g": 128,
    "b": 255
  },
  "hsl": {
    "h": 262.205,
    "s": 100,
    "l": 75.098
  },
  "oklch": {
    "l": 0.70049,
    "c": 0.18286,
    "h": 298.7
  },
  "luminance": 0.31772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF80FF

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

Preview Lab → · Contrast checker → · Palette generator →

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