#AF77DF#AF77DF

#AF77DF is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.8% C 0.158 H 307.5°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#AF77DF
RGBrgb(175, 119, 223)
HSLhsl(272, 62%, 67%)
HSVhsv(272, 47%, 87%)
CMYKcmyk(21.5%, 46.6%, 0%, 12.5%)
CIE-LABlab(59.56, 41.34, -44.89)
CIE-LCHlch(59.56, 61.03, 312.64°)
OKLaboklab(66.83% 0.0962 -0.1254)
OKLCHoklch(66.83% 0.158 307.5)
XYZxyz(37.5927, 27.6357, 73.1515)
Luminance0.2763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77DF #A7DF77
analogous
#7B77DF #AF77DF #DF77DB
triadic
#AF77DF #DFAF77 #77DFAF
tetradic
#AF77DF #DF7B77 #A7DF77 #77DBDF
square
#AF77DF #DF7B77 #A7DF77 #77DBDF
split-complementary
#AF77DF #DBDF77 #77DF7B
monochromatic
#732AB2 #9245D3 #AF77DF #CCA9EB #E9DAF6

Accessibility & contrast

On white

3.22
#AF77DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#AF77DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77DF
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77DF#FFFFFF#000000##000000
##AF77DF1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8DE3
Deuteranopia (green-blind)
#6B90DC
Tritanopia (blue-blind)
#A888A0
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af77df;
/* rgb */ color: rgb(175, 119, 223);
/* oklch */ color: oklch(66.8% 0.158 307.5);
Tailwind
colors: {
  custom: {
    50: '#c99fe9',
    500: '#af77df',
    950: '#000000',
  },
}
SCSS
$custom: #af77df;
$custom-light: #c99fe9;
$custom-dark: #000000;
JSON
{
  "hex": "#af77df",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 223
  },
  "hsl": {
    "h": 272.308,
    "s": 61.905,
    "l": 67.059
  },
  "oklch": {
    "l": 0.66834,
    "c": 0.15803,
    "h": 307.5
  },
  "luminance": 0.27635
}

Semantic roles & 50–950 ramp

primary
#AF77DF
secondary
#D8E9C8
accent
#CA1C6C
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #AF77DF

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

Preview Lab → · Contrast checker → · Palette generator →

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