#AF79CE#AF79CE

#AF79CE is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.3% C 0.134 H 312.4°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#AF79CE
RGBrgb(175, 121, 206)
HSLhsl(278, 46%, 64%)
HSVhsv(278, 41%, 81%)
CMYKcmyk(15%, 41.3%, 0%, 19.2%)
CIE-LABlab(59.20, 36.46, -35.90)
CIE-LCHlch(59.20, 51.17, 315.45°)
OKLaboklab(66.31% 0.0906 -0.0994)
OKLCHoklch(66.31% 0.134 312.4)
XYZxyz(35.6553, 27.2456, 61.7612)
Luminance0.2725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79CE #98CE79
analogous
#8579CE #AF79CE #CE79C3
triadic
#AF79CE #CEAF79 #79CEAF
tetradic
#AF79CE #CE8579 #98CE79 #79C3CE
square
#AF79CE #CE8579 #98CE79 #79C3CE
split-complementary
#AF79CE #C3CE79 #79CE85
monochromatic
#733796 #944CBE #AF79CE #CAA6DE #E5D3EF

Accessibility & contrast

On white

3.26
#AF79CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#AF79CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79CE
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79CE#FFFFFF#000000##000000
##AF79CE1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#698CD1
Deuteranopia (green-blind)
#7690CC
Tritanopia (blue-blind)
#AC859A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af79ce;
/* rgb */ color: rgb(175, 121, 206);
/* oklch */ color: oklch(66.3% 0.134 312.4);
Tailwind
colors: {
  custom: {
    50: '#c8a1dd',
    500: '#af79ce',
    950: '#000000',
  },
}
SCSS
$custom: #af79ce;
$custom-light: #c8a1dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af79ce",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 206
  },
  "hsl": {
    "h": 278.118,
    "s": 46.448,
    "l": 64.118
  },
  "oklch": {
    "l": 0.66305,
    "c": 0.13448,
    "h": 312.4
  },
  "luminance": 0.27245
}

Semantic roles & 50–950 ramp

primary
#AF79CE
secondary
#CDE0C3
accent
#BA2C60
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130F15
muted
#827E83

Preview Lab

Preview with #AF79CE

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

Preview Lab → · Contrast checker → · Palette generator →

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