#AF79DF#AF79DF

#AF79DF is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.2% C 0.155 H 307.1°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#AF79DF
RGBrgb(175, 121, 223)
HSLhsl(272, 61%, 67%)
HSVhsv(272, 46%, 87%)
CMYKcmyk(21.5%, 45.7%, 0%, 12.5%)
CIE-LABlab(59.99, 40.24, -44.21)
CIE-LCHlch(59.99, 59.78, 312.31°)
OKLaboklab(67.16% 0.0934 -0.1234)
OKLCHoklch(67.16% 0.155 307.1)
XYZxyz(37.8332, 28.1168, 73.2317)
Luminance0.2812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79DF #A9DF79
analogous
#7C79DF #AF79DF #DF79DC
triadic
#AF79DF #DFAF79 #79DFAF
tetradic
#AF79DF #DF7C79 #A9DF79 #79DCDF
square
#AF79DF #DF7C79 #A9DF79 #79DCDF
split-complementary
#AF79DF #DCDF79 #79DF7C
monochromatic
#732BB3 #9248D3 #AF79DF #CCAAEB #EADCF7

Accessibility & contrast

On white

3.17
#AF79DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#AF79DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79DF
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79DF#FFFFFF#000000##000000
##AF79DF1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8FE3
Deuteranopia (green-blind)
#6D91DC
Tritanopia (blue-blind)
#A88AA1
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af79df;
/* rgb */ color: rgb(175, 121, 223);
/* oklch */ color: oklch(67.2% 0.155 307.1);
Tailwind
colors: {
  custom: {
    50: '#c9a1e9',
    500: '#af79df',
    950: '#000000',
  },
}
SCSS
$custom: #af79df;
$custom-light: #c9a1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af79df",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 223
  },
  "hsl": {
    "h": 271.765,
    "s": 61.446,
    "l": 67.451
  },
  "oklch": {
    "l": 0.6716,
    "c": 0.15477,
    "h": 307.1
  },
  "luminance": 0.28116
}

Semantic roles & 50–950 ramp

primary
#AF79DF
secondary
#D9EACA
accent
#C91C6E
background
#FCFAFE
surface
#F8F3FD
border
#D1CDD5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF79DF

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

Preview Lab → · Contrast checker → · Palette generator →

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