#AF78FB#AF78FB

#AF78FB is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.6% C 0.190 H 300.9°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#AF78FB
RGBrgb(175, 120, 251)
HSLhsl(265, 94%, 73%)
HSVhsv(265, 52%, 98%)
CMYKcmyk(30.3%, 52.2%, 0%, 1.6%)
CIE-LABlab(61.23, 47.35, -57.78)
CIE-LCHlch(61.23, 74.71, 309.34°)
OKLaboklab(68.55% 0.0975 -0.163)
OKLCHoklch(68.55% 0.19 300.9)
XYZxyz(41.8042, 29.5118, 94.7420)
Luminance0.2951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78FB #C4FB78
analogous
#7882FB #AF78FB #F178FB
triadic
#AF78FB #FBAF78 #78FBAF
tetradic
#AF78FB #FB7882 #C4FB78 #78FBF1
square
#AF78FB #FB7882 #C4FB78 #78FBF1
split-complementary
#AF78FB #FBF178 #82FB78
monochromatic
#6A07F1 #8C3DF9 #AF78FB #D2B3FD #EDE1FE

Accessibility & contrast

On white

3.04
#AF78FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#AF78FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78FB
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78FB#FFFFFF#000000##000000
##AF78FB1.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4893FF
Deuteranopia (green-blind)
#5993F8
Tritanopia (blue-blind)
#A091AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af78fb;
/* rgb */ color: rgb(175, 120, 251);
/* oklch */ color: oklch(68.6% 0.190 300.9);
Tailwind
colors: {
  custom: {
    50: '#caa0fd',
    500: '#af78fb',
    950: '#000000',
  },
}
SCSS
$custom: #af78fb;
$custom-light: #caa0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af78fb",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 265.191,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68551,
    "c": 0.18994,
    "h": 300.9
  },
  "luminance": 0.29512
}

Semantic roles & 50–950 ramp

primary
#AF78FB
secondary
#E8F6D5
accent
#E60085
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF78FB

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

Preview Lab → · Contrast checker → · Palette generator →

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