#AF77FA#AF77FA

#AF77FA is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.3% C 0.190 H 301.3°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#AF77FA
RGBrgb(175, 119, 250)
HSLhsl(266, 93%, 72%)
HSVhsv(266, 52%, 98%)
CMYKcmyk(30%, 52.4%, 0%, 2%)
CIE-LABlab(60.97, 47.65, -57.65)
CIE-LCHlch(60.97, 74.80, 309.58°)
OKLaboklab(68.34% 0.0987 -0.1626)
OKLCHoklch(68.34% 0.19 301.3)
XYZxyz(41.5273, 29.2096, 93.8742)
Luminance0.2921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77FA #C2FA77
analogous
#7780FA #AF77FA #F177FA
triadic
#AF77FA #FAAF77 #77FAAF
tetradic
#AF77FA #FA7780 #C2FA77 #77FAF1
square
#AF77FA #FA7780 #C2FA77 #77FAF1
split-complementary
#AF77FA #FAF177 #80FA77
monochromatic
#6B09EE #8C3CF8 #AF77FA #D2B2FC #EEE1FE

Accessibility & contrast

On white

3.07
#AF77FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#AF77FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77FA
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77FA#FFFFFF#000000##000000
##AF77FA1.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4792FE
Deuteranopia (green-blind)
#5892F7
Tritanopia (blue-blind)
#A090AD
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af77fa;
/* rgb */ color: rgb(175, 119, 250);
/* oklch */ color: oklch(68.3% 0.190 301.3);
Tailwind
colors: {
  custom: {
    50: '#caa0fc',
    500: '#af77fa',
    950: '#000000',
  },
}
SCSS
$custom: #af77fa;
$custom-light: #caa0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af77fa",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 250
  },
  "hsl": {
    "h": 265.649,
    "s": 92.908,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68338,
    "c": 0.19023,
    "h": 301.3
  },
  "luminance": 0.2921
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF77FA

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

Preview Lab → · Contrast checker → · Palette generator →

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