#AF79F7#AF79F7

#AF79F7 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.5% C 0.184 H 301.5°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#AF79F7
RGBrgb(175, 121, 247)
HSLhsl(266, 89%, 72%)
HSVhsv(266, 51%, 97%)
CMYKcmyk(29.1%, 51%, 0%, 3.1%)
CIE-LABlab(61.22, 45.85, -55.59)
CIE-LCHlch(61.22, 72.06, 309.52°)
OKLaboklab(68.48% 0.096 -0.1566)
OKLCHoklch(68.48% 0.184 301.5)
XYZxyz(41.3012, 29.5040, 91.4966)
Luminance0.2950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79F7 #C1F779
analogous
#7982F7 #AF79F7 #EE79F7
triadic
#AF79F7 #F7AF79 #79F7AF
tetradic
#AF79F7 #F77982 #C1F779 #79F7EE
square
#AF79F7 #F77982 #C1F779 #79F7EE
split-complementary
#AF79F7 #F7EE79 #82F779
monochromatic
#6B0EE8 #8D3FF4 #AF79F7 #D1B3FA #EEE2FD

Accessibility & contrast

On white

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

On black

6.90
#AF79F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79F7
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79F7#FFFFFF#000000##000000
##AF79F71.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af79f7;
/* rgb */ color: rgb(175, 121, 247);
/* oklch */ color: oklch(68.5% 0.184 301.5);
Tailwind
colors: {
  custom: {
    50: '#caa1fa',
    500: '#af79f7',
    950: '#000000',
  },
}
SCSS
$custom: #af79f7;
$custom-light: #caa1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af79f7",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 247
  },
  "hsl": {
    "h": 265.714,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68476,
    "c": 0.18365,
    "h": 301.5
  },
  "luminance": 0.29504
}

Semantic roles & 50–950 ramp

primary
#AF79F7
secondary
#E8F5D6
accent
#E50083
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF79F7

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

Preview Lab → · Contrast checker → · Palette generator →

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