#AF78F6#AF78F6

#AF78F6 is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.3% C 0.184 H 301.9°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#AF78F6
RGBrgb(175, 120, 246)
HSLhsl(266, 88%, 72%)
HSVhsv(266, 51%, 96%)
CMYKcmyk(28.9%, 51.2%, 0%, 3.5%)
CIE-LABlab(60.96, 46.16, -55.46)
CIE-LCHlch(60.96, 72.15, 309.77°)
OKLaboklab(68.26% 0.0972 -0.1562)
OKLCHoklch(68.26% 0.184 301.9)
XYZxyz(41.0264, 29.2006, 90.6458)
Luminance0.2920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78F6 #BFF678
analogous
#7880F6 #AF78F6 #EE78F6
triadic
#AF78F6 #F6AF78 #78F6AF
tetradic
#AF78F6 #F67880 #BFF678 #78F6EE
square
#AF78F6 #F67880 #BFF678 #78F6EE
split-complementary
#AF78F6 #F6EE78 #80F678
monochromatic
#6C0FE4 #8D3FF2 #AF78F6 #D1B1FA #EEE2FD

Accessibility & contrast

On white

3.07
#AF78F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#AF78F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78F6
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78F6#FFFFFF#000000##000000
##AF78F61.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D92FA
Deuteranopia (green-blind)
#5D93F3
Tritanopia (blue-blind)
#A290AC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af78f6;
/* rgb */ color: rgb(175, 120, 246);
/* oklch */ color: oklch(68.3% 0.184 301.9);
Tailwind
colors: {
  custom: {
    50: '#caa0fa',
    500: '#af78f6',
    950: '#000000',
  },
}
SCSS
$custom: #af78f6;
$custom-light: #caa0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af78f6",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 266.19,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.68261,
    "c": 0.18396,
    "h": 301.9
  },
  "luminance": 0.29201
}

Semantic roles & 50–950 ramp

primary
#AF78F6
secondary
#E7F5D5
accent
#E40181
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF78F6

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

Preview Lab → · Contrast checker → · Palette generator →

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