#AF77F5#AF77F5

#AF77F5 is a light, vivid violet. Relative luminance 0.289; OKLCH L 68.0% C 0.184 H 302.3°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#AF77F5
RGBrgb(175, 119, 245)
HSLhsl(267, 86%, 71%)
HSVhsv(267, 51%, 96%)
CMYKcmyk(28.6%, 51.4%, 0%, 3.9%)
CIE-LABlab(60.69, 46.46, -55.33)
CIE-LCHlch(60.69, 72.25, 310.02°)
OKLaboklab(68.05% 0.0984 -0.1558)
OKLCHoklch(68.05% 0.184 302.3)
XYZxyz(40.7537, 28.9001, 89.7998)
Luminance0.2890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77F5 #BDF577
analogous
#777EF5 #AF77F5 #EE77F5
triadic
#AF77F5 #F5AF77 #77F5AF
tetradic
#AF77F5 #F5777E #BDF577 #77F5EE
square
#AF77F5 #F5777E #BDF577 #77F5EE
split-complementary
#AF77F5 #F5EE77 #7EF577
monochromatic
#6D11E1 #8D3EF1 #AF77F5 #D1B0F9 #EEE2FD

Accessibility & contrast

On white

3.10
#AF77F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#AF77F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77F5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77F5#FFFFFF#000000##000000
##AF77F51.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C91F9
Deuteranopia (green-blind)
#5C92F2
Tritanopia (blue-blind)
#A28FAB
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af77f5;
/* rgb */ color: rgb(175, 119, 245);
/* oklch */ color: oklch(68.0% 0.184 302.3);
Tailwind
colors: {
  custom: {
    50: '#caa0f9',
    500: '#af77f5',
    950: '#000000',
  },
}
SCSS
$custom: #af77f5;
$custom-light: #caa0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#af77f5",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 245
  },
  "hsl": {
    "h": 266.667,
    "s": 86.301,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68047,
    "c": 0.18428,
    "h": 302.3
  },
  "luminance": 0.289
}

Semantic roles & 50–950 ramp

primary
#AF77F5
secondary
#E6F4D4
accent
#E3037F
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F17
muted
#827E85

Preview Lab

Preview with #AF77F5

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

Preview Lab → · Contrast checker → · Palette generator →

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