#AF79E8#AF79E8

#AF79E8 is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.6% C 0.166 H 304.8°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#AF79E8
RGBrgb(175, 121, 232)
HSLhsl(269, 71%, 69%)
HSVhsv(269, 48%, 91%)
CMYKcmyk(24.6%, 47.8%, 0%, 9%)
CIE-LABlab(60.44, 42.31, -48.52)
CIE-LCHlch(60.44, 64.38, 311.09°)
OKLaboklab(67.64% 0.0946 -0.1359)
OKLCHoklch(67.64% 0.166 304.8)
XYZxyz(39.0790, 28.6151, 79.7928)
Luminance0.2862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79E8 #B2E879
analogous
#797BE8 #AF79E8 #E779E8
triadic
#AF79E8 #E8AF79 #79E8AF
tetradic
#AF79E8 #E8797B #B2E879 #79E8E7
square
#AF79E8 #E8797B #B2E879 #79E8E7
split-complementary
#AF79E8 #E8E779 #7BE879
monochromatic
#7122C5 #9045DF #AF79E8 #CEADF1 #EDE1FA

Accessibility & contrast

On white

3.12
#AF79E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#AF79E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79E8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79E8#FFFFFF#000000##000000
##AF79E81.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A90EC
Deuteranopia (green-blind)
#6892E5
Tritanopia (blue-blind)
#A68CA6
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af79e8;
/* rgb */ color: rgb(175, 121, 232);
/* oklch */ color: oklch(67.6% 0.166 304.8);
Tailwind
colors: {
  custom: {
    50: '#c9a1f0',
    500: '#af79e8',
    950: '#000000',
  },
}
SCSS
$custom: #af79e8;
$custom-light: #c9a1f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af79e8",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 232
  },
  "hsl": {
    "h": 269.189,
    "s": 70.701,
    "l": 69.216
  },
  "oklch": {
    "l": 0.67639,
    "c": 0.16561,
    "h": 304.8
  },
  "luminance": 0.28615
}

Semantic roles & 50–950 ramp

primary
#AF79E8
secondary
#DFEFCE
accent
#D31375
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF79E8

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

Preview Lab → · Contrast checker → · Palette generator →

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