#AF79EC#AF79EC

#AF79EC is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.9% C 0.170 H 303.9°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#AF79EC
RGBrgb(175, 121, 236)
HSLhsl(268, 75%, 70%)
HSVhsv(268, 49%, 93%)
CMYKcmyk(25.8%, 48.7%, 0%, 7.5%)
CIE-LABlab(60.64, 43.25, -50.42)
CIE-LCHlch(60.64, 66.43, 310.62°)
OKLaboklab(67.86% 0.095 -0.1415)
OKLCHoklch(67.86% 0.17 303.9)
XYZxyz(39.6536, 28.8449, 82.8192)
Luminance0.2884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79EC #B6EC79
analogous
#797DEC #AF79EC #E879EC
triadic
#AF79EC #ECAF79 #79ECAF
tetradic
#AF79EC #EC797D #B6EC79 #79ECE8
square
#AF79EC #EC797D #B6EC79 #79ECE8
split-complementary
#AF79EC #ECE879 #7DEC79
monochromatic
#701DCD #8F43E4 #AF79EC #CFAFF4 #EFE4FB

Accessibility & contrast

On white

3.10
#AF79EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#AF79EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79EC
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79EC#FFFFFF#000000##000000
##AF79EC1.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5791F0
Deuteranopia (green-blind)
#6592E9
Tritanopia (blue-blind)
#A48DA8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af79ec;
/* rgb */ color: rgb(175, 121, 236);
/* oklch */ color: oklch(67.9% 0.170 303.9);
Tailwind
colors: {
  custom: {
    50: '#c9a1f2',
    500: '#af79ec',
    950: '#000000',
  },
}
SCSS
$custom: #af79ec;
$custom-light: #c9a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af79ec",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 236
  },
  "hsl": {
    "h": 268.174,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.67857,
    "c": 0.17042,
    "h": 303.9
  },
  "luminance": 0.28845
}

Semantic roles & 50–950 ramp

primary
#AF79EC
secondary
#E1F0D0
accent
#D70E79
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF79EC

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

Preview Lab → · Contrast checker → · Palette generator →

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