#AF79F8#AF79F8

#AF79F8 is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.5% C 0.185 H 301.3°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#AF79F8
RGBrgb(175, 121, 248)
HSLhsl(266, 90%, 72%)
HSVhsv(266, 51%, 97%)
CMYKcmyk(29.4%, 51.2%, 0%, 2.7%)
CIE-LABlab(61.28, 46.09, -56.05)
CIE-LCHlch(61.28, 72.57, 309.43°)
OKLaboklab(68.53% 0.0961 -0.1579)
OKLCHoklch(68.53% 0.185 301.3)
XYZxyz(41.4559, 29.5659, 92.3115)
Luminance0.2957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79F8 #C2F879
analogous
#7982F8 #AF79F8 #EF79F8
triadic
#AF79F8 #F8AF79 #79F8AF
tetradic
#AF79F8 #F87982 #C2F879 #79F8EF
square
#AF79F8 #F87982 #C2F879 #79F8EF
split-complementary
#AF79F8 #F8EF79 #82F879
monochromatic
#6B0CEA #8C3FF5 #AF79F8 #D2B3FB #EEE2FD

Accessibility & contrast

On white

3.04
#AF79F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#AF79F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79F8
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79F8#FFFFFF#000000##000000
##AF79F81.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D93FC
Deuteranopia (green-blind)
#5C93F5
Tritanopia (blue-blind)
#A191AD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af79f8;
/* rgb */ color: rgb(175, 121, 248);
/* oklch */ color: oklch(68.5% 0.185 301.3);
Tailwind
colors: {
  custom: {
    50: '#caa1fb',
    500: '#af79f8',
    950: '#000000',
  },
}
SCSS
$custom: #af79f8;
$custom-light: #caa1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af79f8",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 248
  },
  "hsl": {
    "h": 265.512,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68533,
    "c": 0.18485,
    "h": 301.3
  },
  "luminance": 0.29566
}

Semantic roles & 50–950 ramp

primary
#AF79F8
secondary
#E8F6D5
accent
#E60084
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF79F8

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

Preview Lab → · Contrast checker → · Palette generator →

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