#AF79ED#AF79ED

#AF79ED is a light, vivid violet. Relative luminance 0.289; OKLCH L 67.9% C 0.172 H 303.7°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#AF79ED
RGBrgb(175, 121, 237)
HSLhsl(268, 76%, 70%)
HSVhsv(268, 49%, 93%)
CMYKcmyk(26.2%, 48.9%, 0%, 7.1%)
CIE-LABlab(60.70, 43.48, -50.89)
CIE-LCHlch(60.70, 66.94, 310.51°)
OKLaboklab(67.91% 0.0951 -0.1428)
OKLCHoklch(67.91% 0.172 303.7)
XYZxyz(39.7993, 28.9032, 83.5865)
Luminance0.2890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79ED #B7ED79
analogous
#797DED #AF79ED #E979ED
triadic
#AF79ED #EDAF79 #79EDAF
tetradic
#AF79ED #ED797D #B7ED79 #79EDE9
square
#AF79ED #ED797D #B7ED79 #79EDE9
split-complementary
#AF79ED #EDE979 #7DED79
monochromatic
#701CD0 #8F43E6 #AF79ED #CFAFF4 #EFE4FB

Accessibility & contrast

On white

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

On black

6.78
#AF79ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79ED
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79ED#FFFFFF#000000##000000
##AF79ED1.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5691F1
Deuteranopia (green-blind)
#6592EA
Tritanopia (blue-blind)
#A48EA8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af79ed;
/* rgb */ color: rgb(175, 121, 237);
/* oklch */ color: oklch(67.9% 0.172 303.7);
Tailwind
colors: {
  custom: {
    50: '#c9a1f3',
    500: '#af79ed',
    950: '#000000',
  },
}
SCSS
$custom: #af79ed;
$custom-light: #c9a1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af79ed",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 237
  },
  "hsl": {
    "h": 267.931,
    "s": 76.316,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67912,
    "c": 0.17163,
    "h": 303.7
  },
  "luminance": 0.28903
}

Semantic roles & 50–950 ramp

primary
#AF79ED
secondary
#E2F1D1
accent
#D90D7A
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF79ED

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

Preview Lab → · Contrast checker → · Palette generator →

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