#AF77FC#AF77FC

#AF77FC is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.5% C 0.193 H 300.9°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#AF77FC
RGBrgb(175, 119, 252)
HSLhsl(265, 96%, 73%)
HSVhsv(265, 53%, 99%)
CMYKcmyk(30.6%, 52.8%, 0%, 1.2%)
CIE-LABlab(61.08, 48.13, -58.58)
CIE-LCHlch(61.08, 75.82, 309.41°)
OKLaboklab(68.46% 0.0988 -0.1653)
OKLCHoklch(68.46% 0.193 300.9)
XYZxyz(41.8426, 29.3357, 95.5345)
Luminance0.2934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77FC #C4FC77
analogous
#7782FC #AF77FC #F177FC
triadic
#AF77FC #FCAF77 #77FCAF
tetradic
#AF77FC #FC7782 #C4FC77 #77FCF1
square
#AF77FC #FC7782 #C4FC77 #77FCF1
split-complementary
#AF77FC #FCF177 #82FC77
monochromatic
#6A05F3 #8C3BFB #AF77FC #D2B3FD #EDE1FE

Accessibility & contrast

On white

3.06
#AF77FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#AF77FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77FC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77FC#FFFFFF#000000##000000
##AF77FC1.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4593FF
Deuteranopia (green-blind)
#5793F9
Tritanopia (blue-blind)
#A091AE
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af77fc;
/* rgb */ color: rgb(175, 119, 252);
/* oklch */ color: oklch(68.5% 0.193 300.9);
Tailwind
colors: {
  custom: {
    50: '#caa0fe',
    500: '#af77fc',
    950: '#000000',
  },
}
SCSS
$custom: #af77fc;
$custom-light: #caa0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af77fc",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 252
  },
  "hsl": {
    "h": 265.263,
    "s": 95.683,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68455,
    "c": 0.19261,
    "h": 300.9
  },
  "luminance": 0.29336
}

Semantic roles & 50–950 ramp

primary
#AF77FC
secondary
#E8F7D4
accent
#E60085
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F18
muted
#827E86

Preview Lab

Preview with #AF77FC

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

Preview Lab → · Contrast checker → · Palette generator →

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