#AF79FB#AF79FB

#AF79FB is a light, vivid violet. Relative luminance 0.298; OKLCH L 68.7% C 0.188 H 300.7°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#AF79FB
RGBrgb(175, 121, 251)
HSLhsl(265, 94%, 73%)
HSVhsv(265, 52%, 98%)
CMYKcmyk(30.3%, 51.8%, 0%, 1.6%)
CIE-LABlab(61.44, 46.81, -57.45)
CIE-LCHlch(61.44, 74.11, 309.18°)
OKLaboklab(68.71% 0.0963 -0.162)
OKLCHoklch(68.71% 0.188 300.7)
XYZxyz(41.9251, 29.7535, 94.7823)
Luminance0.2975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79FB #C5FB79
analogous
#7984FB #AF79FB #F079FB
triadic
#AF79FB #FBAF79 #79FBAF
tetradic
#AF79FB #FB7984 #C5FB79 #79FBF0
square
#AF79FB #FB7984 #C5FB79 #79FBF0
split-complementary
#AF79FB #FBF079 #84FB79
monochromatic
#6907F2 #8C3EF9 #AF79FB #D2B4FD #EDE1FE

Accessibility & contrast

On white

3.02
#AF79FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#AF79FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79FB
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79FB#FFFFFF#000000##000000
##AF79FB1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A94FF
Deuteranopia (green-blind)
#5A94F8
Tritanopia (blue-blind)
#A092AF
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af79fb;
/* rgb */ color: rgb(175, 121, 251);
/* oklch */ color: oklch(68.7% 0.188 300.7);
Tailwind
colors: {
  custom: {
    50: '#caa1fd',
    500: '#af79fb',
    950: '#000000',
  },
}
SCSS
$custom: #af79fb;
$custom-light: #caa1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af79fb",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 251
  },
  "hsl": {
    "h": 264.923,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68707,
    "c": 0.18845,
    "h": 300.7
  },
  "luminance": 0.29754
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF79FB

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

Preview Lab → · Contrast checker → · Palette generator →

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