#AF79FE#AF79FE

#AF79FE is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.9% C 0.192 H 300.2°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#AF79FE
RGBrgb(175, 121, 254)
HSLhsl(264, 99%, 74%)
HSVhsv(264, 52%, 100%)
CMYKcmyk(31.1%, 52.4%, 0%, 0.4%)
CIE-LABlab(61.61, 47.54, -58.83)
CIE-LCHlch(61.61, 75.64, 308.94°)
OKLaboklab(68.88% 0.0965 -0.1661)
OKLCHoklch(68.88% 0.192 300.2)
XYZxyz(42.4017, 29.9442, 97.2926)
Luminance0.2994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79FE #C8FE79
analogous
#7985FE #AF79FE #F279FE
triadic
#AF79FE #FEAF79 #79FEAF
tetradic
#AF79FE #FE7985 #C8FE79 #79FEF2
square
#AF79FE #FE7985 #C8FE79 #79FEF2
split-complementary
#AF79FE #FEF279 #85FE79
monochromatic
#6702FB #8B3CFE #AF79FE #D3B6FE #EDE1FF

Accessibility & contrast

On white

3.00
#AF79FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#AF79FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79FE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79FE#FFFFFF#000000##000000
##AF79FE1.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4794FF
Deuteranopia (green-blind)
#5794FB
Tritanopia (blue-blind)
#9F93B0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af79fe;
/* rgb */ color: rgb(175, 121, 254);
/* oklch */ color: oklch(68.9% 0.192 300.2);
Tailwind
colors: {
  custom: {
    50: '#caa1ff',
    500: '#af79fe',
    950: '#000000',
  },
}
SCSS
$custom: #af79fe;
$custom-light: #caa1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af79fe",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 254
  },
  "hsl": {
    "h": 264.361,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.68882,
    "c": 0.19204,
    "h": 300.2
  },
  "luminance": 0.29944
}

Semantic roles & 50–950 ramp

primary
#AF79FE
secondary
#E9F7D4
accent
#E60088
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF79FE

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

Preview Lab → · Contrast checker → · Palette generator →

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