#AF77DB#AF77DB

#AF77DB is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.6% C 0.153 H 308.6°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#AF77DB
RGBrgb(175, 119, 219)
HSLhsl(274, 58%, 66%)
HSVhsv(274, 46%, 86%)
CMYKcmyk(20.1%, 45.7%, 0%, 14.1%)
CIE-LABlab(59.36, 40.44, -42.96)
CIE-LCHlch(59.36, 59.00, 313.27°)
OKLaboklab(66.63% 0.0957 -0.1198)
OKLCHoklch(66.63% 0.153 308.6)
XYZxyz(37.0598, 27.4226, 70.3449)
Luminance0.2742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77DB #A3DB77
analogous
#7D77DB #AF77DB #DB77D5
triadic
#AF77DB #DBAF77 #77DBAF
tetradic
#AF77DB #DB7D77 #A3DB77 #77D5DB
square
#AF77DB #DB7D77 #A3DB77 #77D5DB
split-complementary
#AF77DB #D5DB77 #77DB7D
monochromatic
#732DAA #9347CE #AF77DB #CBA7E8 #E8D8F5

Accessibility & contrast

On white

3.24
#AF77DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#AF77DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77DB
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77DB#FFFFFF#000000##000000
##AF77DB1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8DDF
Deuteranopia (green-blind)
#6E90D8
Tritanopia (blue-blind)
#A9879F
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af77db;
/* rgb */ color: rgb(175, 119, 219);
/* oklch */ color: oklch(66.6% 0.153 308.6);
Tailwind
colors: {
  custom: {
    50: '#c99fe6',
    500: '#af77db',
    950: '#000000',
  },
}
SCSS
$custom: #af77db;
$custom-light: #c99fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#af77db",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 219
  },
  "hsl": {
    "h": 273.6,
    "s": 58.14,
    "l": 66.275
  },
  "oklch": {
    "l": 0.66625,
    "c": 0.15327,
    "h": 308.6
  },
  "luminance": 0.27422
}

Semantic roles & 50–950 ramp

primary
#AF77DB
secondary
#D5E7C7
accent
#C62069
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #AF77DB

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

Preview Lab → · Contrast checker → · Palette generator →

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