#AF79F5#AF79F5

#AF79F5 is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.4% C 0.181 H 301.9°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#AF79F5
RGBrgb(175, 121, 245)
HSLhsl(266, 86%, 72%)
HSVhsv(266, 51%, 96%)
CMYKcmyk(28.6%, 50.6%, 0%, 3.9%)
CIE-LABlab(61.12, 45.37, -54.65)
CIE-LCHlch(61.12, 71.03, 309.70°)
OKLaboklab(68.36% 0.0959 -0.1538)
OKLCHoklch(68.36% 0.181 301.9)
XYZxyz(40.9943, 29.3812, 89.8799)
Luminance0.2938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79F5 #BFF579
analogous
#7981F5 #AF79F5 #ED79F5
triadic
#AF79F5 #F5AF79 #79F5AF
tetradic
#AF79F5 #F57981 #BFF579 #79F5ED
square
#AF79F5 #F57981 #BFF579 #79F5ED
split-complementary
#AF79F5 #F5ED79 #81F579
monochromatic
#6C11E3 #8D40F1 #AF79F5 #D1B2F9 #EEE3FD

Accessibility & contrast

On white

3.05
#AF79F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#AF79F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79F5
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79F5#FFFFFF#000000##000000
##AF79F51.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5093F9
Deuteranopia (green-blind)
#5F93F2
Tritanopia (blue-blind)
#A290AC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af79f5;
/* rgb */ color: rgb(175, 121, 245);
/* oklch */ color: oklch(68.4% 0.181 301.9);
Tailwind
colors: {
  custom: {
    50: '#caa1f9',
    500: '#af79f5',
    950: '#000000',
  },
}
SCSS
$custom: #af79f5;
$custom-light: #caa1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#af79f5",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 245
  },
  "hsl": {
    "h": 266.129,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.68361,
    "c": 0.18125,
    "h": 301.9
  },
  "luminance": 0.29381
}

Semantic roles & 50–950 ramp

primary
#AF79F5
secondary
#E7F5D5
accent
#E30381
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF79F5

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

Preview Lab → · Contrast checker → · Palette generator →

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