#AF78F8#AF78F8

#AF78F8 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.4% C 0.186 H 301.5°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#AF78F8
RGBrgb(175, 120, 248)
HSLhsl(266, 90%, 72%)
HSVhsv(266, 52%, 97%)
CMYKcmyk(29.4%, 51.6%, 0%, 2.7%)
CIE-LABlab(61.07, 46.63, -56.39)
CIE-LCHlch(61.07, 73.17, 309.59°)
OKLaboklab(68.38% 0.0974 -0.1589)
OKLCHoklch(68.38% 0.186 301.5)
XYZxyz(41.3350, 29.3241, 92.2712)
Luminance0.2932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78F8 #C1F878
analogous
#7881F8 #AF78F8 #EF78F8
triadic
#AF78F8 #F8AF78 #78F8AF
tetradic
#AF78F8 #F87881 #C1F878 #78F8EF
square
#AF78F8 #F87881 #C1F878 #78F8EF
split-complementary
#AF78F8 #F8EF78 #81F878
monochromatic
#6B0CE9 #8D3EF5 #AF78F8 #D1B2FB #EEE2FD

Accessibility & contrast

On white

3.06
#AF78F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#AF78F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78F8
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78F8#FFFFFF#000000##000000
##AF78F81.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B93FC
Deuteranopia (green-blind)
#5B93F5
Tritanopia (blue-blind)
#A190AD
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af78f8;
/* rgb */ color: rgb(175, 120, 248);
/* oklch */ color: oklch(68.4% 0.186 301.5);
Tailwind
colors: {
  custom: {
    50: '#caa0fb',
    500: '#af78f8',
    950: '#000000',
  },
}
SCSS
$custom: #af78f8;
$custom-light: #caa0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af78f8",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 265.781,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68377,
    "c": 0.18636,
    "h": 301.5
  },
  "luminance": 0.29324
}

Semantic roles & 50–950 ramp

primary
#AF78F8
secondary
#E8F6D5
accent
#E60083
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF78F8

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

Preview Lab → · Contrast checker → · Palette generator →

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