#AF79DC#AF79DC

#AF79DC is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.0% C 0.151 H 308.0°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#AF79DC
RGBrgb(175, 121, 220)
HSLhsl(273, 59%, 67%)
HSVhsv(273, 45%, 86%)
CMYKcmyk(20.5%, 45%, 0%, 13.7%)
CIE-LABlab(59.85, 39.56, -42.76)
CIE-LCHlch(59.85, 58.25, 312.78°)
OKLaboklab(67% 0.093 -0.1192)
OKLCHoklch(67% 0.151 308)
XYZxyz(37.4323, 27.9564, 71.1204)
Luminance0.2796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79DC #A6DC79
analogous
#7E79DC #AF79DC #DC79D8
triadic
#AF79DC #DCAF79 #79DCAF
tetradic
#AF79DC #DC7E79 #A6DC79 #79D8DC
square
#AF79DC #DC7E79 #A6DC79 #79D8DC
split-complementary
#AF79DC #D8DC79 #79DC7E
monochromatic
#732DAD #9248CF #AF79DC #CCAAE9 #E9DAF5

Accessibility & contrast

On white

3.19
#AF79DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#AF79DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79DC
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79DC#FFFFFF#000000##000000
##AF79DC1.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#618EE0
Deuteranopia (green-blind)
#6F91D9
Tritanopia (blue-blind)
#A989A0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af79dc;
/* rgb */ color: rgb(175, 121, 220);
/* oklch */ color: oklch(67.0% 0.151 308.0);
Tailwind
colors: {
  custom: {
    50: '#c9a1e7',
    500: '#af79dc',
    950: '#000000',
  },
}
SCSS
$custom: #af79dc;
$custom-light: #c9a1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af79dc",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 220
  },
  "hsl": {
    "h": 272.727,
    "s": 58.58,
    "l": 66.863
  },
  "oklch": {
    "l": 0.67004,
    "c": 0.15117,
    "h": 308
  },
  "luminance": 0.27956
}

Semantic roles & 50–950 ramp

primary
#AF79DC
secondary
#D7E8C9
accent
#C61F6B
background
#FCFAFE
surface
#F8F3FC
border
#D1CDD5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF79DC

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

Preview Lab → · Contrast checker → · Palette generator →

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