#AF78FC#AF78FC

#AF78FC is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.6% C 0.191 H 300.7°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#AF78FC
RGBrgb(175, 120, 252)
HSLhsl(265, 96%, 73%)
HSVhsv(265, 52%, 99%)
CMYKcmyk(30.6%, 52.4%, 0%, 1.2%)
CIE-LABlab(61.29, 47.60, -58.24)
CIE-LCHlch(61.29, 75.22, 309.25°)
OKLaboklab(68.61% 0.0976 -0.1643)
OKLCHoklch(68.61% 0.191 300.7)
XYZxyz(41.9622, 29.5750, 95.5744)
Luminance0.2958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78FC #C5FC78
analogous
#7883FC #AF78FC #F178FC
triadic
#AF78FC #FCAF78 #78FCAF
tetradic
#AF78FC #FC7883 #C5FC78 #78FCF1
square
#AF78FC #FC7883 #C5FC78 #78FCF1
split-complementary
#AF78FC #FCF178 #83FC78
monochromatic
#6905F4 #8C3CFB #AF78FC #D2B4FD #EDE1FE

Accessibility & contrast

On white

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

On black

6.92
#AF78FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78FC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78FC#FFFFFF#000000##000000
##AF78FC1.003.046.926.92
#FFFFFF3.041.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4793FF
Deuteranopia (green-blind)
#5893F9
Tritanopia (blue-blind)
#A091AF
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af78fc;
/* rgb */ color: rgb(175, 120, 252);
/* oklch */ color: oklch(68.6% 0.191 300.7);
Tailwind
colors: {
  custom: {
    50: '#caa0fe',
    500: '#af78fc',
    950: '#000000',
  },
}
SCSS
$custom: #af78fc;
$custom-light: #caa0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af78fc",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 265,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.6861,
    "c": 0.19113,
    "h": 300.7
  },
  "luminance": 0.29575
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF78FC

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

Preview Lab → · Contrast checker → · Palette generator →

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