#AF77EF#AF77EF

#AF77EF is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.7% C 0.177 H 303.6°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#AF77EF
RGBrgb(175, 119, 239)
HSLhsl(268, 79%, 70%)
HSVhsv(268, 50%, 94%)
CMYKcmyk(26.8%, 50.2%, 0%, 6.3%)
CIE-LABlab(60.37, 45.04, -52.52)
CIE-LCHlch(60.37, 69.18, 310.62°)
OKLaboklab(67.71% 0.098 -0.1476)
OKLCHoklch(67.71% 0.177 303.6)
XYZxyz(39.8526, 28.5397, 85.0538)
Luminance0.2854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77EF #B7EF77
analogous
#777BEF #AF77EF #EB77EF
triadic
#AF77EF #EFAF77 #77EFAF
tetradic
#AF77EF #EF777B #B7EF77 #77EFEB
square
#AF77EF #EF777B #B7EF77 #77EFEB
split-complementary
#AF77EF #EFEB77 #7BEF77
monochromatic
#7019D3 #8F40E9 #AF77EF #CFAEF5 #EFE4FC

Accessibility & contrast

On white

3.13
#AF77EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#AF77EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77EF
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77EF#FFFFFF#000000##000000
##AF77EF1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5190F3
Deuteranopia (green-blind)
#6191EC
Tritanopia (blue-blind)
#A48DA8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af77ef;
/* rgb */ color: rgb(175, 119, 239);
/* oklch */ color: oklch(67.7% 0.177 303.6);
Tailwind
colors: {
  custom: {
    50: '#caa0f5',
    500: '#af77ef',
    950: '#000000',
  },
}
SCSS
$custom: #af77ef;
$custom-light: #caa0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af77ef",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 239
  },
  "hsl": {
    "h": 268,
    "s": 78.947,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67706,
    "c": 0.17713,
    "h": 303.6
  },
  "luminance": 0.2854
}

Semantic roles & 50–950 ramp

primary
#AF77EF
secondary
#E2F2D0
accent
#DB0A7A
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF77EF

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

Preview Lab → · Contrast checker → · Palette generator →

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