#AF77EB#AF77EB

#AF77EB is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.5% C 0.172 H 304.5°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#AF77EB
RGBrgb(175, 119, 235)
HSLhsl(269, 74%, 69%)
HSVhsv(269, 49%, 92%)
CMYKcmyk(25.5%, 49.4%, 0%, 7.8%)
CIE-LABlab(60.16, 44.10, -50.63)
CIE-LCHlch(60.16, 67.14, 311.06°)
OKLaboklab(67.48% 0.0976 -0.1421)
OKLCHoklch(67.48% 0.172 304.5)
XYZxyz(39.2682, 28.3059, 81.9760)
Luminance0.2831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77EB #B3EB77
analogous
#7779EB #AF77EB #E977EB
triadic
#AF77EB #EBAF77 #77EBAF
tetradic
#AF77EB #EB7779 #B3EB77 #77EBE9
square
#AF77EB #EB7779 #B3EB77 #77EBE9
split-complementary
#AF77EB #EBE977 #79EB77
monochromatic
#711ECA #9042E3 #AF77EB #CEACF3 #EEE2FB

Accessibility & contrast

On white

3.15
#AF77EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#AF77EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77EB
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77EB#FFFFFF#000000##000000
##AF77EB1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#548FEF
Deuteranopia (green-blind)
#6491E8
Tritanopia (blue-blind)
#A58CA6
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af77eb;
/* rgb */ color: rgb(175, 119, 235);
/* oklch */ color: oklch(67.5% 0.172 304.5);
Tailwind
colors: {
  custom: {
    50: '#c99ff2',
    500: '#af77eb',
    950: '#000000',
  },
}
SCSS
$custom: #af77eb;
$custom-light: #c99ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#af77eb",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 235
  },
  "hsl": {
    "h": 268.966,
    "s": 74.359,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67483,
    "c": 0.17235,
    "h": 304.5
  },
  "luminance": 0.28306
}

Semantic roles & 50–950 ramp

primary
#AF77EB
secondary
#DFF0CE
accent
#D60F76
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF77EB

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

Preview Lab → · Contrast checker → · Palette generator →

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