#AF77FB#AF77FB

#AF77FB is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.4% C 0.191 H 301.1°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#AF77FB
RGBrgb(175, 119, 251)
HSLhsl(265, 94%, 73%)
HSVhsv(265, 53%, 98%)
CMYKcmyk(30.3%, 52.6%, 0%, 1.6%)
CIE-LABlab(61.02, 47.89, -58.12)
CIE-LCHlch(61.02, 75.31, 309.49°)
OKLaboklab(68.4% 0.0988 -0.164)
OKLCHoklch(68.4% 0.191 301.1)
XYZxyz(41.6846, 29.2725, 94.7021)
Luminance0.2927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77FB #C3FB77
analogous
#7781FB #AF77FB #F177FB
triadic
#AF77FB #FBAF77 #77FBAF
tetradic
#AF77FB #FB7781 #C3FB77 #77FBF1
square
#AF77FB #FB7781 #C3FB77 #77FBF1
split-complementary
#AF77FB #FBF177 #81FB77
monochromatic
#6A07F1 #8C3CF9 #AF77FB #D2B2FD #EEE1FE

Accessibility & contrast

On white

3.06
#AF77FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#AF77FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77FB
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77FB#FFFFFF#000000##000000
##AF77FB1.003.066.856.85
#FFFFFF3.061.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4693FF
Deuteranopia (green-blind)
#5793F8
Tritanopia (blue-blind)
#A090AE
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af77fb;
/* rgb */ color: rgb(175, 119, 251);
/* oklch */ color: oklch(68.4% 0.191 301.1);
Tailwind
colors: {
  custom: {
    50: '#caa0fd',
    500: '#af77fb',
    950: '#000000',
  },
}
SCSS
$custom: #af77fb;
$custom-light: #caa0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af77fb",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 251
  },
  "hsl": {
    "h": 265.455,
    "s": 94.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68396,
    "c": 0.19142,
    "h": 301.1
  },
  "luminance": 0.29273
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF77FB

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

Preview Lab → · Contrast checker → · Palette generator →

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