#AF76FB#AF76FB

#AF76FB is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.2% C 0.193 H 301.2°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#AF76FB
RGBrgb(175, 118, 251)
HSLhsl(266, 94%, 72%)
HSVhsv(266, 53%, 98%)
CMYKcmyk(30.3%, 53%, 0%, 1.6%)
CIE-LABlab(60.81, 48.43, -58.45)
CIE-LCHlch(60.81, 75.91, 309.65°)
OKLaboklab(68.24% 0.1 -0.1649)
OKLCHoklch(68.24% 0.193 301.2)
XYZxyz(41.5662, 29.0357, 94.6627)
Luminance0.2904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF76FB #C2FB76
analogous
#7680FB #AF76FB #F176FB
triadic
#AF76FB #FBAF76 #76FBAF
tetradic
#AF76FB #FB7680 #C2FB76 #76FBF1
square
#AF76FB #FB7680 #C2FB76 #76FBF1
split-complementary
#AF76FB #FBF176 #80FB76
monochromatic
#6B07F0 #8C3BF9 #AF76FB #D2B1FD #EEE1FE

Accessibility & contrast

On white

3.08
#AF76FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#AF76FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF76FB
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF76FB#FFFFFF#000000##000000
##AF76FB1.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4492FF
Deuteranopia (green-blind)
#5692F8
Tritanopia (blue-blind)
#A090AD
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af76fb;
/* rgb */ color: rgb(175, 118, 251);
/* oklch */ color: oklch(68.2% 0.193 301.2);
Tailwind
colors: {
  custom: {
    50: '#ca9ffd',
    500: '#af76fb',
    950: '#000000',
  },
}
SCSS
$custom: #af76fb;
$custom-light: #ca9ffd;
$custom-dark: #000000;
JSON
{
  "hex": "#af76fb",
  "rgb": {
    "r": 175,
    "g": 118,
    "b": 251
  },
  "hsl": {
    "h": 265.714,
    "s": 94.326,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68242,
    "c": 0.1929,
    "h": 301.2
  },
  "luminance": 0.29036
}

Semantic roles & 50–950 ramp

primary
#AF76FB
secondary
#E8F6D5
accent
#E60083
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F18
muted
#827E86

Preview Lab

Preview with #AF76FB

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

Preview Lab → · Contrast checker → · Palette generator →

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