#AF77FF#AF77FF

#AF77FF is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.6% C 0.196 H 300.3°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#AF77FF
RGBrgb(175, 119, 255)
HSLhsl(265, 100%, 73%)
HSVhsv(265, 53%, 100%)
CMYKcmyk(31.4%, 53.3%, 0%, 0%)
CIE-LABlab(61.24, 48.86, -59.96)
CIE-LCHlch(61.24, 77.35, 309.18°)
OKLaboklab(68.63% 0.099 -0.1694)
OKLCHoklch(68.63% 0.196 300.3)
XYZxyz(42.3217, 29.5274, 98.0580)
Luminance0.2953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77FF #C7FF77
analogous
#7783FF #AF77FF #F377FF
triadic
#AF77FF #FFAF77 #77FFAF
tetradic
#AF77FF #FF7783 #C7FF77 #77FFF3
square
#AF77FF #FF7783 #C7FF77 #77FFF3
split-complementary
#AF77FF #FFF377 #83FF77
monochromatic
#6800FC #8B3AFF #AF77FF #D3B4FF #EDE0FF

Accessibility & contrast

On white

3.04
#AF77FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#AF77FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77FF
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77FF#FFFFFF#000000##000000
##AF77FF1.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4293FF
Deuteranopia (green-blind)
#5493FC
Tritanopia (blue-blind)
#9F92B0
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af77ff;
/* rgb */ color: rgb(175, 119, 255);
/* oklch */ color: oklch(68.6% 0.196 300.3);
Tailwind
colors: {
  custom: {
    50: '#cba0ff',
    500: '#af77ff',
    950: '#000000',
  },
}
SCSS
$custom: #af77ff;
$custom-light: #cba0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af77ff",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 255
  },
  "hsl": {
    "h": 264.706,
    "s": 100,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68633,
    "c": 0.19617,
    "h": 300.3
  },
  "luminance": 0.29528
}

Semantic roles & 50–950 ramp

primary
#AF77FF
secondary
#E9F7D4
accent
#E60087
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F18
muted
#827E86

Preview Lab

Preview with #AF77FF

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

Preview Lab → · Contrast checker → · Palette generator →

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