#AF76FE#AF76FE

#AF76FE is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.4% C 0.196 H 300.7°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#AF76FE
RGBrgb(175, 118, 254)
HSLhsl(265, 99%, 73%)
HSVhsv(265, 54%, 100%)
CMYKcmyk(31.1%, 53.5%, 0%, 0.4%)
CIE-LABlab(60.98, 49.15, -59.83)
CIE-LCHlch(60.98, 77.43, 309.40°)
OKLaboklab(68.42% 0.1002 -0.169)
OKLCHoklch(68.42% 0.196 300.7)
XYZxyz(42.0428, 29.2264, 97.1730)
Luminance0.2923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF76FE #C5FE76
analogous
#7681FE #AF76FE #F376FE
triadic
#AF76FE #FEAF76 #76FEAF
tetradic
#AF76FE #FE7681 #C5FE76 #76FEF3
square
#AF76FE #FE7681 #C5FE76 #76FEF3
split-complementary
#AF76FE #FEF376 #81FE76
monochromatic
#6902F8 #8C39FE #AF76FE #D2B3FE #EDE1FF

Accessibility & contrast

On white

3.07
#AF76FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#AF76FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF76FE
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF76FE#FFFFFF#000000##000000
##AF76FE1.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4193FF
Deuteranopia (green-blind)
#5392FB
Tritanopia (blue-blind)
#9F91AF
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af76fe;
/* rgb */ color: rgb(175, 118, 254);
/* oklch */ color: oklch(68.4% 0.196 300.7);
Tailwind
colors: {
  custom: {
    50: '#cb9fff',
    500: '#af76fe',
    950: '#000000',
  },
}
SCSS
$custom: #af76fe;
$custom-light: #cb9fff;
$custom-dark: #000000;
JSON
{
  "hex": "#af76fe",
  "rgb": {
    "r": 175,
    "g": 118,
    "b": 254
  },
  "hsl": {
    "h": 265.147,
    "s": 98.551,
    "l": 72.941
  },
  "oklch": {
    "l": 0.6842,
    "c": 0.19644,
    "h": 300.7
  },
  "luminance": 0.29227
}

Semantic roles & 50–950 ramp

primary
#AF76FE
secondary
#E8F7D4
accent
#E60085
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F18
muted
#827E86

Preview Lab

Preview with #AF76FE

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

Preview Lab → · Contrast checker → · Palette generator →

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