#AF77F8#AF77F8

#AF77F8 is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.2% C 0.188 H 301.7°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#AF77F8
RGBrgb(175, 119, 248)
HSLhsl(266, 90%, 72%)
HSVhsv(266, 52%, 97%)
CMYKcmyk(29.4%, 52%, 0%, 2.7%)
CIE-LABlab(60.86, 47.17, -56.72)
CIE-LCHlch(60.86, 73.78, 309.75°)
OKLaboklab(68.22% 0.0986 -0.1599)
OKLCHoklch(68.22% 0.188 301.7)
XYZxyz(41.2154, 29.0848, 92.2313)
Luminance0.2908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77F8 #C0F877
analogous
#777FF8 #AF77F8 #F077F8
triadic
#AF77F8 #F8AF77 #77F8AF
tetradic
#AF77F8 #F8777F #C0F877 #77F8F0
square
#AF77F8 #F8777F #C0F877 #77F8F0
split-complementary
#AF77F8 #F8F077 #7FF877
monochromatic
#6C0CE9 #8D3DF5 #AF77F8 #D1B1FB #EEE2FE

Accessibility & contrast

On white

3.08
#AF77F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#AF77F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77F8
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77F8#FFFFFF#000000##000000
##AF77F81.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4992FC
Deuteranopia (green-blind)
#5A92F5
Tritanopia (blue-blind)
#A18FAC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af77f8;
/* rgb */ color: rgb(175, 119, 248);
/* oklch */ color: oklch(68.2% 0.188 301.7);
Tailwind
colors: {
  custom: {
    50: '#caa0fb',
    500: '#af77f8',
    950: '#000000',
  },
}
SCSS
$custom: #af77f8;
$custom-light: #caa0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af77f8",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 248
  },
  "hsl": {
    "h": 266.047,
    "s": 90.21,
    "l": 71.961
  },
  "oklch": {
    "l": 0.68221,
    "c": 0.18785,
    "h": 301.7
  },
  "luminance": 0.29085
}

Semantic roles & 50–950 ramp

primary
#AF77F8
secondary
#E8F6D5
accent
#E60082
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F17
muted
#827E85

Preview Lab

Preview with #AF77F8

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

Preview Lab → · Contrast checker → · Palette generator →

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