#AF76DC#AF76DC

#AF76DC is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.5% C 0.156 H 308.5°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#AF76DC
RGBrgb(175, 118, 220)
HSLhsl(274, 59%, 66%)
HSVhsv(274, 46%, 86%)
CMYKcmyk(20.5%, 46.4%, 0%, 13.7%)
CIE-LABlab(59.19, 41.21, -43.79)
CIE-LCHlch(59.19, 60.13, 313.26°)
OKLaboklab(66.52% 0.0972 -0.1221)
OKLCHoklch(66.52% 0.156 308.5)
XYZxyz(37.0734, 27.2386, 71.0008)
Luminance0.2724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF76DC #A3DC76
analogous
#7C76DC #AF76DC #DC76D6
triadic
#AF76DC #DCAF76 #76DCAF
tetradic
#AF76DC #DC7C76 #A3DC76 #76D6DC
square
#AF76DC #DC7C76 #A3DC76 #76D6DC
split-complementary
#AF76DC #D6DC76 #76DC7C
monochromatic
#732CAC #9345D0 #AF76DC #CBA7E8 #E8D7F5

Accessibility & contrast

On white

3.26
#AF76DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#AF76DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF76DC
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF76DC#FFFFFF#000000##000000
##AF76DC1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8CE0
Deuteranopia (green-blind)
#6C8FD9
Tritanopia (blue-blind)
#A9879F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af76dc;
/* rgb */ color: rgb(175, 118, 220);
/* oklch */ color: oklch(66.5% 0.156 308.5);
Tailwind
colors: {
  custom: {
    50: '#c99fe7',
    500: '#af76dc',
    950: '#000000',
  },
}
SCSS
$custom: #af76dc;
$custom-light: #c99fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#af76dc",
  "rgb": {
    "r": 175,
    "g": 118,
    "b": 220
  },
  "hsl": {
    "h": 273.529,
    "s": 59.302,
    "l": 66.275
  },
  "oklch": {
    "l": 0.66515,
    "c": 0.15609,
    "h": 308.5
  },
  "luminance": 0.27238
}

Semantic roles & 50–950 ramp

primary
#AF76DC
secondary
#D5E8C6
accent
#C71F69
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF76DC

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

Preview Lab → · Contrast checker → · Palette generator →

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