#AF78F7#AF78F7

#AF78F7 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.3% C 0.185 H 301.7°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#AF78F7
RGBrgb(175, 120, 247)
HSLhsl(266, 89%, 72%)
HSVhsv(266, 51%, 97%)
CMYKcmyk(29.1%, 51.4%, 0%, 3.1%)
CIE-LABlab(61.01, 46.39, -55.92)
CIE-LCHlch(61.01, 72.66, 309.68°)
OKLaboklab(68.32% 0.0973 -0.1575)
OKLCHoklch(68.32% 0.185 301.7)
XYZxyz(41.1803, 29.2622, 91.4563)
Luminance0.2926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78F7 #C0F778
analogous
#7881F7 #AF78F7 #EE78F7
triadic
#AF78F7 #F7AF78 #78F7AF
tetradic
#AF78F7 #F77881 #C0F778 #78F7EE
square
#AF78F7 #F77881 #C0F778 #78F7EE
split-complementary
#AF78F7 #F7EE78 #81F778
monochromatic
#6C0EE7 #8D3EF4 #AF78F7 #D1B2FA #EEE2FD

Accessibility & contrast

On white

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

On black

6.85
#AF78F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78F7
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78F7#FFFFFF#000000##000000
##AF78F71.003.066.856.85
#FFFFFF3.061.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C92FB
Deuteranopia (green-blind)
#5C93F4
Tritanopia (blue-blind)
#A190AC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af78f7;
/* rgb */ color: rgb(175, 120, 247);
/* oklch */ color: oklch(68.3% 0.185 301.7);
Tailwind
colors: {
  custom: {
    50: '#caa0fa',
    500: '#af78f7',
    950: '#000000',
  },
}
SCSS
$custom: #af78f7;
$custom-light: #caa0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af78f7",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 265.984,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.68319,
    "c": 0.18515,
    "h": 301.7
  },
  "luminance": 0.29262
}

Semantic roles & 50–950 ramp

primary
#AF78F7
secondary
#E8F5D5
accent
#E50082
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF78F7

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

Preview Lab → · Contrast checker → · Palette generator →

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