#AF77DC#AF77DC

#AF77DC is a light, vivid violet. Relative luminance 0.275; OKLCH L 66.7% C 0.154 H 308.3°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#AF77DC
RGBrgb(175, 119, 220)
HSLhsl(273, 59%, 66%)
HSVhsv(273, 46%, 86%)
CMYKcmyk(20.5%, 45.9%, 0%, 13.7%)
CIE-LABlab(59.41, 40.66, -43.44)
CIE-LCHlch(59.41, 59.50, 313.10°)
OKLaboklab(66.68% 0.0958 -0.1212)
OKLCHoklch(66.68% 0.154 308.3)
XYZxyz(37.1918, 27.4754, 71.0403)
Luminance0.2747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77DC #A4DC77
analogous
#7D77DC #AF77DC #DC77D7
triadic
#AF77DC #DCAF77 #77DCAF
tetradic
#AF77DC #DC7D77 #A4DC77 #77D7DC
square
#AF77DC #DC7D77 #A4DC77 #77D7DC
split-complementary
#AF77DC #D7DC77 #77DC7D
monochromatic
#732CAC #9246CF #AF77DC #CCA8E9 #E8D8F5

Accessibility & contrast

On white

3.23
#AF77DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#AF77DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77DC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77DC#FFFFFF#000000##000000
##AF77DC1.003.236.496.49
#FFFFFF3.231.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8DE0
Deuteranopia (green-blind)
#6D90D9
Tritanopia (blue-blind)
#A9879F
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af77dc;
/* rgb */ color: rgb(175, 119, 220);
/* oklch */ color: oklch(66.7% 0.154 308.3);
Tailwind
colors: {
  custom: {
    50: '#c99fe7',
    500: '#af77dc',
    950: '#000000',
  },
}
SCSS
$custom: #af77dc;
$custom-light: #c99fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#af77dc",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 220
  },
  "hsl": {
    "h": 273.267,
    "s": 59.064,
    "l": 66.471
  },
  "oklch": {
    "l": 0.66677,
    "c": 0.15445,
    "h": 308.3
  },
  "luminance": 0.27475
}

Semantic roles & 50–950 ramp

primary
#AF77DC
secondary
#D6E8C7
accent
#C71F6A
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #AF77DC

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

Preview Lab → · Contrast checker → · Palette generator →

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