#AF79EF#AF79EF

#AF79EF is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.0% C 0.174 H 303.2°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#AF79EF
RGBrgb(175, 121, 239)
HSLhsl(267, 79%, 71%)
HSVhsv(267, 49%, 94%)
CMYKcmyk(26.8%, 49.4%, 0%, 6.3%)
CIE-LABlab(60.80, 43.95, -51.84)
CIE-LCHlch(60.80, 67.96, 310.29°)
OKLaboklab(68.02% 0.0953 -0.1456)
OKLCHoklch(68.02% 0.174 303.2)
XYZxyz(40.0931, 29.0208, 85.1340)
Luminance0.2902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79EF #B9EF79
analogous
#797EEF #AF79EF #EA79EF
triadic
#AF79EF #EFAF79 #79EFAF
tetradic
#AF79EF #EF797E #B9EF79 #79EFEA
square
#AF79EF #EF797E #B9EF79 #79EFEA
split-complementary
#AF79EF #EFEA79 #7EEF79
monochromatic
#6F19D4 #8E42E8 #AF79EF #D0B0F6 #EFE4FC

Accessibility & contrast

On white

3.09
#AF79EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#AF79EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79EF
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79EF#FFFFFF#000000##000000
##AF79EF1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5491F3
Deuteranopia (green-blind)
#6392EC
Tritanopia (blue-blind)
#A48EA9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af79ef;
/* rgb */ color: rgb(175, 121, 239);
/* oklch */ color: oklch(68.0% 0.174 303.2);
Tailwind
colors: {
  custom: {
    50: '#caa1f5',
    500: '#af79ef',
    950: '#000000',
  },
}
SCSS
$custom: #af79ef;
$custom-light: #caa1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af79ef",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 239
  },
  "hsl": {
    "h": 267.458,
    "s": 78.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.68023,
    "c": 0.17403,
    "h": 303.2
  },
  "luminance": 0.29021
}

Semantic roles & 50–950 ramp

primary
#AF79EF
secondary
#E3F2D2
accent
#DB0B7C
background
#FCFAFF
surface
#F9F3FE
border
#D2CDD6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF79EF

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

Preview Lab → · Contrast checker → · Palette generator →

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