#AF79E7#AF79E7

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

Color values

HEX#AF79E7
RGBrgb(175, 121, 231)
HSLhsl(269, 70%, 69%)
HSVhsv(269, 48%, 91%)
CMYKcmyk(24.2%, 47.6%, 0%, 9.4%)
CIE-LABlab(60.39, 42.08, -48.04)
CIE-LCHlch(60.39, 63.87, 311.21°)
OKLaboklab(67.58% 0.0945 -0.1345)
OKLCHoklch(67.58% 0.164 305.1)
XYZxyz(38.9373, 28.5584, 79.0469)
Luminance0.2856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79E7 #B1E779
analogous
#797AE7 #AF79E7 #E679E7
triadic
#AF79E7 #E7AF79 #79E7AF
tetradic
#AF79E7 #E7797A #B1E779 #79E7E6
square
#AF79E7 #E7797A #B1E779 #79E7E6
split-complementary
#AF79E7 #E7E679 #7AE779
monochromatic
#7123C3 #9045DE #AF79E7 #CEADF0 #EDE1FA

Accessibility & contrast

On white

3.13
#AF79E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#AF79E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79E7
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79E7#FFFFFF#000000##000000
##AF79E71.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A90EB
Deuteranopia (green-blind)
#6992E4
Tritanopia (blue-blind)
#A68CA5
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af79e7;
/* rgb */ color: rgb(175, 121, 231);
/* oklch */ color: oklch(67.6% 0.164 305.1);
Tailwind
colors: {
  custom: {
    50: '#c9a1ef',
    500: '#af79e7',
    950: '#000000',
  },
}
SCSS
$custom: #af79e7;
$custom-light: #c9a1ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af79e7",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 231
  },
  "hsl": {
    "h": 269.455,
    "s": 69.62,
    "l": 69.02
  },
  "oklch": {
    "l": 0.67585,
    "c": 0.1644,
    "h": 305.1
  },
  "luminance": 0.28558
}

Semantic roles & 50–950 ramp

primary
#AF79E7
secondary
#DEEECE
accent
#D21474
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF79E7

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

Preview Lab → · Contrast checker → · Palette generator →

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