#AF77EC#AF77EC

#AF77EC is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.5% C 0.174 H 304.3°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#AF77EC
RGBrgb(175, 119, 236)
HSLhsl(269, 75%, 70%)
HSVhsv(269, 50%, 93%)
CMYKcmyk(25.8%, 49.6%, 0%, 7.5%)
CIE-LABlab(60.22, 44.34, -51.10)
CIE-LCHlch(60.22, 67.65, 310.95°)
OKLaboklab(67.54% 0.0977 -0.1434)
OKLCHoklch(67.54% 0.174 304.3)
XYZxyz(39.4131, 28.3639, 82.7390)
Luminance0.2836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77EC #B4EC77
analogous
#777AEC #AF77EC #EA77EC
triadic
#AF77EC #ECAF77 #77ECAF
tetradic
#AF77EC #EC777A #B4EC77 #77ECEA
square
#AF77EC #EC777A #B4EC77 #77ECEA
split-complementary
#AF77EC #ECEA77 #7AEC77
monochromatic
#711DCC #8F41E4 #AF77EC #CFADF4 #EEE2FB

Accessibility & contrast

On white

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

On black

6.67
#AF77EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77EC
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77EC#FFFFFF#000000##000000
##AF77EC1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5490F0
Deuteranopia (green-blind)
#6391E9
Tritanopia (blue-blind)
#A58CA7
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af77ec;
/* rgb */ color: rgb(175, 119, 236);
/* oklch */ color: oklch(67.5% 0.174 304.3);
Tailwind
colors: {
  custom: {
    50: '#c99ff3',
    500: '#af77ec',
    950: '#000000',
  },
}
SCSS
$custom: #af77ec;
$custom-light: #c99ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#af77ec",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 236
  },
  "hsl": {
    "h": 268.718,
    "s": 75.484,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67538,
    "c": 0.17354,
    "h": 304.3
  },
  "luminance": 0.28364
}

Semantic roles & 50–950 ramp

primary
#AF77EC
secondary
#E0F0CF
accent
#D80E77
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF77EC

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

Preview Lab → · Contrast checker → · Palette generator →

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