#AF77FE#AF77FE

#AF77FE is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.6% C 0.195 H 300.5°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#AF77FE
RGBrgb(175, 119, 254)
HSLhsl(265, 99%, 73%)
HSVhsv(265, 53%, 100%)
CMYKcmyk(31.1%, 53.1%, 0%, 0.4%)
CIE-LABlab(61.19, 48.62, -59.50)
CIE-LCHlch(61.19, 76.84, 309.25°)
OKLaboklab(68.57% 0.0989 -0.168)
OKLCHoklch(68.57% 0.195 300.5)
XYZxyz(42.1612, 29.4631, 97.2125)
Luminance0.2946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77FE #C6FE77
analogous
#7782FE #AF77FE #F377FE
triadic
#AF77FE #FEAF77 #77FEAF
tetradic
#AF77FE #FE7782 #C6FE77 #77FEF3
square
#AF77FE #FE7782 #C6FE77 #77FEF3
split-complementary
#AF77FE #FEF377 #82FE77
monochromatic
#6802F9 #8B3AFE #AF77FE #D3B4FE #EDE1FF

Accessibility & contrast

On white

3.05
#AF77FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#AF77FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77FE
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77FE#FFFFFF#000000##000000
##AF77FE1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4393FF
Deuteranopia (green-blind)
#5593FB
Tritanopia (blue-blind)
#9F91AF
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af77fe;
/* rgb */ color: rgb(175, 119, 254);
/* oklch */ color: oklch(68.6% 0.195 300.5);
Tailwind
colors: {
  custom: {
    50: '#caa0ff',
    500: '#af77fe',
    950: '#000000',
  },
}
SCSS
$custom: #af77fe;
$custom-light: #caa0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af77fe",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 254
  },
  "hsl": {
    "h": 264.889,
    "s": 98.54,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68573,
    "c": 0.19498,
    "h": 300.5
  },
  "luminance": 0.29463
}

Semantic roles & 50–950 ramp

primary
#AF77FE
secondary
#E8F7D4
accent
#E60086
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F18
muted
#827E86

Preview Lab

Preview with #AF77FE

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

Preview Lab → · Contrast checker → · Palette generator →

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