#AF77F2#AF77F2

#AF77F2 is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.9% C 0.181 H 302.9°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#AF77F2
RGBrgb(175, 119, 242)
HSLhsl(267, 83%, 71%)
HSVhsv(267, 51%, 95%)
CMYKcmyk(27.7%, 50.8%, 0%, 5.1%)
CIE-LABlab(60.53, 45.75, -53.92)
CIE-LCHlch(60.53, 70.72, 310.31°)
OKLaboklab(67.88% 0.0982 -0.1517)
OKLCHoklch(67.88% 0.181 302.9)
XYZxyz(40.2995, 28.7184, 87.4073)
Luminance0.2872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF77F2 #BAF277
analogous
#777CF2 #AF77F2 #EC77F2
triadic
#AF77F2 #F2AF77 #77F2AF
tetradic
#AF77F2 #F2777C #BAF277 #77F2EC
square
#AF77F2 #F2777C #BAF277 #77F2EC
split-complementary
#AF77F2 #F2EC77 #7CF277
monochromatic
#6E15DA #8E3FED #AF77F2 #D0AFF7 #EFE3FC

Accessibility & contrast

On white

3.11
#AF77F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#AF77F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF77F2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF77F2#FFFFFF#000000##000000
##AF77F21.003.116.746.74
#FFFFFF3.111.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F91F6
Deuteranopia (green-blind)
#5F92EF
Tritanopia (blue-blind)
#A38EAA
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af77f2;
/* rgb */ color: rgb(175, 119, 242);
/* oklch */ color: oklch(67.9% 0.181 302.9);
Tailwind
colors: {
  custom: {
    50: '#caa0f7',
    500: '#af77f2',
    950: '#000000',
  },
}
SCSS
$custom: #af77f2;
$custom-light: #caa0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af77f2",
  "rgb": {
    "r": 175,
    "g": 119,
    "b": 242
  },
  "hsl": {
    "h": 267.317,
    "s": 82.55,
    "l": 70.784
  },
  "oklch": {
    "l": 0.67876,
    "c": 0.18071,
    "h": 302.9
  },
  "luminance": 0.28718
}

Semantic roles & 50–950 ramp

primary
#AF77F2
secondary
#E4F3D2
accent
#DF077C
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F17
muted
#827E85

Preview Lab

Preview with #AF77F2

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

Preview Lab → · Contrast checker → · Palette generator →

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