#AF78FD#AF78FD

#AF78FD is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.7% C 0.192 H 300.5°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#AF78FD
RGBrgb(175, 120, 253)
HSLhsl(265, 97%, 73%)
HSVhsv(265, 53%, 99%)
CMYKcmyk(30.8%, 52.6%, 0%, 0.8%)
CIE-LABlab(61.34, 47.84, -58.71)
CIE-LCHlch(61.34, 75.73, 309.18°)
OKLaboklab(68.67% 0.0977 -0.1657)
OKLCHoklch(68.67% 0.192 300.5)
XYZxyz(42.1211, 29.6385, 96.4112)
Luminance0.2964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78FD #C6FD78
analogous
#7883FD #AF78FD #F178FD
triadic
#AF78FD #FDAF78 #78FDAF
tetradic
#AF78FD #FD7883 #C6FD78 #78FDF1
square
#AF78FD #FD7883 #C6FD78 #78FDF1
split-complementary
#AF78FD #FDF178 #83FD78
monochromatic
#6804F7 #8B3CFC #AF78FD #D3B4FE #EDE1FF

Accessibility & contrast

On white

3.03
#AF78FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#AF78FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78FD
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78FD#FFFFFF#000000##000000
##AF78FD1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4694FF
Deuteranopia (green-blind)
#5793FA
Tritanopia (blue-blind)
#9F92AF
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af78fd;
/* rgb */ color: rgb(175, 120, 253);
/* oklch */ color: oklch(68.7% 0.192 300.5);
Tailwind
colors: {
  custom: {
    50: '#caa0ff',
    500: '#af78fd',
    950: '#000000',
  },
}
SCSS
$custom: #af78fd;
$custom-light: #caa0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af78fd",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 253
  },
  "hsl": {
    "h": 264.812,
    "s": 97.08,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68668,
    "c": 0.19232,
    "h": 300.5
  },
  "luminance": 0.29639
}

Semantic roles & 50–950 ramp

primary
#AF78FD
secondary
#E8F7D4
accent
#E60087
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF78FD

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

Preview Lab → · Contrast checker → · Palette generator →

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