#AF80EF#AF80EF

#AF80EF is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.2% C 0.163 H 301.8°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#AF80EF
RGBrgb(175, 128, 239)
HSLhsl(265, 78%, 72%)
HSVhsv(265, 46%, 94%)
CMYKcmyk(26.8%, 46.4%, 0%, 6.3%)
CIE-LABlab(62.33, 40.11, -49.42)
CIE-LCHlch(62.33, 63.65, 309.06°)
OKLaboklab(69.16% 0.0861 -0.1386)
OKLCHoklch(69.16% 0.163 301.8)
XYZxyz(40.9749, 30.7842, 85.4279)
Luminance0.3078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF80EF #C0EF80
analogous
#8089EF #AF80EF #E680EF
triadic
#AF80EF #EFAF80 #80EFAF
tetradic
#AF80EF #EF8089 #C0EF80 #80EFE6
square
#AF80EF #EF8089 #C0EF80 #80EFE6
split-complementary
#AF80EF #EFE680 #89EF80
monochromatic
#6C1BD9 #8D4AE8 #AF80EF #D1B6F6 #EEE4FC

Accessibility & contrast

On white

2.93
#AF80EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#AF80EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF80EF
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF80EF#FFFFFF#000000##000000
##AF80EF1.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F96F3
Deuteranopia (green-blind)
#6B96EC
Tritanopia (blue-blind)
#A394AC
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af80ef;
/* rgb */ color: rgb(175, 128, 239);
/* oklch */ color: oklch(69.2% 0.163 301.8);
Tailwind
colors: {
  custom: {
    50: '#c9a6f5',
    500: '#af80ef',
    950: '#000000',
  },
}
SCSS
$custom: #af80ef;
$custom-light: #c9a6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af80ef",
  "rgb": {
    "r": 175,
    "g": 128,
    "b": 239
  },
  "hsl": {
    "h": 265.405,
    "s": 77.622,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69161,
    "c": 0.16312,
    "h": 301.8
  },
  "luminance": 0.30784
}

Semantic roles & 50–950 ramp

primary
#AF80EF
secondary
#E8F3D7
accent
#DA0C83
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF80EF

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

Preview Lab → · Contrast checker → · Palette generator →

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