#AF76EF#AF76EF

#AF76EF is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.5% C 0.179 H 303.7°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#AF76EF
RGBrgb(175, 118, 239)
HSLhsl(268, 79%, 70%)
HSVhsv(268, 51%, 94%)
CMYKcmyk(26.8%, 50.6%, 0%, 6.3%)
CIE-LABlab(60.16, 45.58, -52.85)
CIE-LCHlch(60.16, 69.79, 310.77°)
OKLaboklab(67.55% 0.0993 -0.1486)
OKLCHoklch(67.55% 0.179 303.7)
XYZxyz(39.7342, 28.3029, 85.0143)
Luminance0.2830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF76EF #B6EF76
analogous
#767AEF #AF76EF #EB76EF
triadic
#AF76EF #EFAF76 #76EFAF
tetradic
#AF76EF #EF767A #B6EF76 #76EFEB
square
#AF76EF #EF767A #B6EF76 #76EFEB
split-complementary
#AF76EF #EFEB76 #7AEF76
monochromatic
#7019D2 #8F3FE9 #AF76EF #CFADF5 #EFE4FC

Accessibility & contrast

On white

3.15
#AF76EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#AF76EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF76EF
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF76EF#FFFFFF#000000##000000
##AF76EF1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F90F3
Deuteranopia (green-blind)
#6091EC
Tritanopia (blue-blind)
#A48CA8
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af76ef;
/* rgb */ color: rgb(175, 118, 239);
/* oklch */ color: oklch(67.5% 0.179 303.7);
Tailwind
colors: {
  custom: {
    50: '#ca9ff5',
    500: '#af76ef',
    950: '#000000',
  },
}
SCSS
$custom: #af76ef;
$custom-light: #ca9ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#af76ef",
  "rgb": {
    "r": 175,
    "g": 118,
    "b": 239
  },
  "hsl": {
    "h": 268.264,
    "s": 79.085,
    "l": 70
  },
  "oklch": {
    "l": 0.67549,
    "c": 0.17866,
    "h": 303.7
  },
  "luminance": 0.28303
}

Semantic roles & 50–950 ramp

primary
#AF76EF
secondary
#E1F1CF
accent
#DB0A79
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF76EF

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

Preview Lab → · Contrast checker → · Palette generator →

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