#AF76EC#AF76EC

#AF76EC is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.4% C 0.175 H 304.4°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#AF76EC
RGBrgb(175, 118, 236)
HSLhsl(269, 76%, 69%)
HSVhsv(269, 50%, 93%)
CMYKcmyk(25.8%, 50%, 0%, 7.5%)
CIE-LABlab(60.00, 44.88, -51.44)
CIE-LCHlch(60.00, 68.26, 311.10°)
OKLaboklab(67.38% 0.099 -0.1444)
OKLCHoklch(67.38% 0.175 304.4)
XYZxyz(39.2947, 28.1271, 82.6996)
Luminance0.2813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF76EC #B3EC76
analogous
#7678EC #AF76EC #EA76EC
triadic
#AF76EC #ECAF76 #76ECAF
tetradic
#AF76EC #EC7678 #B3EC76 #76ECEA
square
#AF76EC #EC7678 #B3EC76 #76ECEA
split-complementary
#AF76EC #ECEA76 #78EC76
monochromatic
#711CCB #9040E5 #AF76EC #CEACF3 #EEE1FB

Accessibility & contrast

On white

3.17
#AF76EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#AF76EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF76EC
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF76EC#FFFFFF#000000##000000
##AF76EC1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#528FF0
Deuteranopia (green-blind)
#6291E9
Tritanopia (blue-blind)
#A58BA6
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af76ec;
/* rgb */ color: rgb(175, 118, 236);
/* oklch */ color: oklch(67.4% 0.175 304.4);
Tailwind
colors: {
  custom: {
    50: '#c99ff3',
    500: '#af76ec',
    950: '#000000',
  },
}
SCSS
$custom: #af76ec;
$custom-light: #c99ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#af76ec",
  "rgb": {
    "r": 175,
    "g": 118,
    "b": 236
  },
  "hsl": {
    "h": 268.983,
    "s": 75.641,
    "l": 69.412
  },
  "oklch": {
    "l": 0.6738,
    "c": 0.1751,
    "h": 304.4
  },
  "luminance": 0.28127
}

Semantic roles & 50–950 ramp

primary
#AF76EC
secondary
#DFF0CE
accent
#D80E76
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF76EC

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

Preview Lab → · Contrast checker → · Palette generator →

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