#AF79FA#AF79FA

#AF79FA is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.6% C 0.187 H 300.9°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#AF79FA
RGBrgb(175, 121, 250)
HSLhsl(265, 93%, 73%)
HSVhsv(265, 52%, 98%)
CMYKcmyk(30%, 51.6%, 0%, 2%)
CIE-LABlab(61.39, 46.57, -56.98)
CIE-LCHlch(61.39, 73.59, 309.26°)
OKLaboklab(68.65% 0.0962 -0.1606)
OKLCHoklch(68.65% 0.187 300.9)
XYZxyz(41.7679, 29.6907, 93.9543)
Luminance0.2969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79FA #C4FA79
analogous
#7984FA #AF79FA #EF79FA
triadic
#AF79FA #FAAF79 #79FAAF
tetradic
#AF79FA #FA7984 #C4FA79 #79FAEF
square
#AF79FA #FA7984 #C4FA79 #79FAEF
split-complementary
#AF79FA #FAEF79 #84FA79
monochromatic
#6A09F0 #8C3EF8 #AF79FA #D2B4FC #EDE2FE

Accessibility & contrast

On white

3.03
#AF79FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#AF79FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79FA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79FA#FFFFFF#000000##000000
##AF79FA1.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B94FE
Deuteranopia (green-blind)
#5B94F7
Tritanopia (blue-blind)
#A092AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af79fa;
/* rgb */ color: rgb(175, 121, 250);
/* oklch */ color: oklch(68.6% 0.187 300.9);
Tailwind
colors: {
  custom: {
    50: '#caa1fc',
    500: '#af79fa',
    950: '#000000',
  },
}
SCSS
$custom: #af79fa;
$custom-light: #caa1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af79fa",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 250
  },
  "hsl": {
    "h": 265.116,
    "s": 92.806,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68649,
    "c": 0.18725,
    "h": 300.9
  },
  "luminance": 0.29691
}

Semantic roles & 50–950 ramp

primary
#AF79FA
secondary
#E8F6D5
accent
#E60085
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF79FA

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

Preview Lab → · Contrast checker → · Palette generator →

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