#AF79EB#AF79EB

#AF79EB is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.8% C 0.169 H 304.1°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#AF79EB
RGBrgb(175, 121, 235)
HSLhsl(268, 74%, 70%)
HSVhsv(268, 49%, 92%)
CMYKcmyk(25.5%, 48.5%, 0%, 7.8%)
CIE-LABlab(60.59, 43.01, -49.95)
CIE-LCHlch(60.59, 65.91, 310.73°)
OKLaboklab(67.8% 0.0949 -0.1401)
OKLCHoklch(67.8% 0.169 304.1)
XYZxyz(39.5087, 28.7870, 82.0562)
Luminance0.2879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79EB #B5EB79
analogous
#797CEB #AF79EB #E879EB
triadic
#AF79EB #EBAF79 #79EBAF
tetradic
#AF79EB #EB797C #B5EB79 #79EBE8
square
#AF79EB #EB797C #B5EB79 #79EBE8
split-complementary
#AF79EB #EBE879 #7CEB79
monochromatic
#701ECB #8F44E3 #AF79EB #CFAEF3 #EFE4FB

Accessibility & contrast

On white

3.11
#AF79EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#AF79EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79EB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79EB#FFFFFF#000000##000000
##AF79EB1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5791EF
Deuteranopia (green-blind)
#6692E8
Tritanopia (blue-blind)
#A58DA7
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af79eb;
/* rgb */ color: rgb(175, 121, 235);
/* oklch */ color: oklch(67.8% 0.169 304.1);
Tailwind
colors: {
  custom: {
    50: '#c9a1f2',
    500: '#af79eb',
    950: '#000000',
  },
}
SCSS
$custom: #af79eb;
$custom-light: #c9a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af79eb",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 235
  },
  "hsl": {
    "h": 268.421,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67802,
    "c": 0.16922,
    "h": 304.1
  },
  "luminance": 0.28787
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF79EB

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

Preview Lab → · Contrast checker → · Palette generator →

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