#AF80EC#AF80EC

#AF80EC is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.0% C 0.159 H 302.5°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#AF80EC
RGBrgb(175, 128, 236)
HSLhsl(266, 74%, 71%)
HSVhsv(266, 46%, 93%)
CMYKcmyk(25.8%, 45.8%, 0%, 7.5%)
CIE-LABlab(62.18, 39.39, -48.00)
CIE-LCHlch(62.18, 62.09, 309.38°)
OKLaboklab(69% 0.0857 -0.1344)
OKLCHoklch(69% 0.159 302.5)
XYZxyz(40.5353, 30.6084, 83.1131)
Luminance0.3061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF80EC #BDEC80
analogous
#8087EC #AF80EC #E580EC
triadic
#AF80EC #ECAF80 #80ECAF
tetradic
#AF80EC #EC8087 #BDEC80 #80ECE5
square
#AF80EC #EC8087 #BDEC80 #80ECE5
split-complementary
#AF80EC #ECE580 #87EC80
monochromatic
#6D1FD2 #8D4BE4 #AF80EC #D1B5F4 #EEE4FB

Accessibility & contrast

On white

2.95
#AF80EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#AF80EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF80EC
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF80EC#FFFFFF#000000##000000
##AF80EC1.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6195F0
Deuteranopia (green-blind)
#6D96E9
Tritanopia (blue-blind)
#A493AB
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af80ec;
/* rgb */ color: rgb(175, 128, 236);
/* oklch */ color: oklch(69.0% 0.159 302.5);
Tailwind
colors: {
  custom: {
    50: '#c9a6f2',
    500: '#af80ec',
    950: '#000000',
  },
}
SCSS
$custom: #af80ec;
$custom-light: #c9a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af80ec",
  "rgb": {
    "r": 175,
    "g": 128,
    "b": 236
  },
  "hsl": {
    "h": 266.111,
    "s": 73.973,
    "l": 71.373
  },
  "oklch": {
    "l": 0.69001,
    "c": 0.1594,
    "h": 302.5
  },
  "luminance": 0.30608
}

Semantic roles & 50–950 ramp

primary
#AF80EC
secondary
#E6F2D6
accent
#D60F80
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF80EC

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

Preview Lab → · Contrast checker → · Palette generator →

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