#AF78FA#AF78FA

#AF78FA is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.5% C 0.189 H 301.1°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#AF78FA
RGBrgb(175, 120, 250)
HSLhsl(265, 93%, 73%)
HSVhsv(265, 52%, 98%)
CMYKcmyk(30%, 52%, 0%, 2%)
CIE-LABlab(61.18, 47.11, -57.32)
CIE-LCHlch(61.18, 74.20, 309.42°)
OKLaboklab(68.49% 0.0975 -0.1616)
OKLCHoklch(68.49% 0.189 301.1)
XYZxyz(41.6470, 29.4489, 93.9140)
Luminance0.2945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78FA #C3FA78
analogous
#7882FA #AF78FA #F078FA
triadic
#AF78FA #FAAF78 #78FAAF
tetradic
#AF78FA #FA7882 #C3FA78 #78FAF0
square
#AF78FA #FA7882 #C3FA78 #78FAF0
split-complementary
#AF78FA #FAF078 #82FA78
monochromatic
#6A09EF #8C3DF8 #AF78FA #D2B3FC #EEE1FE

Accessibility & contrast

On white

3.05
#AF78FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#AF78FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78FA
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78FA#FFFFFF#000000##000000
##AF78FA1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4993FE
Deuteranopia (green-blind)
#5A93F7
Tritanopia (blue-blind)
#A091AE
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af78fa;
/* rgb */ color: rgb(175, 120, 250);
/* oklch */ color: oklch(68.5% 0.189 301.1);
Tailwind
colors: {
  custom: {
    50: '#caa0fc',
    500: '#af78fa',
    950: '#000000',
  },
}
SCSS
$custom: #af78fa;
$custom-light: #caa0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af78fa",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 250
  },
  "hsl": {
    "h": 265.385,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68493,
    "c": 0.18874,
    "h": 301.1
  },
  "luminance": 0.29449
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF78FA

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

Preview Lab → · Contrast checker → · Palette generator →

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