#AF78FE#AF78FE

#AF78FE is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.7% C 0.194 H 300.3°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#AF78FE
RGBrgb(175, 120, 254)
HSLhsl(265, 99%, 73%)
HSVhsv(265, 53%, 100%)
CMYKcmyk(31.1%, 52.8%, 0%, 0.4%)
CIE-LABlab(61.40, 48.08, -59.17)
CIE-LCHlch(61.40, 76.24, 309.10°)
OKLaboklab(68.73% 0.0977 -0.167)
OKLCHoklch(68.73% 0.194 300.3)
XYZxyz(42.2808, 29.7024, 97.2523)
Luminance0.2970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78FE #C7FE78
analogous
#7884FE #AF78FE #F278FE
triadic
#AF78FE #FEAF78 #78FEAF
tetradic
#AF78FE #FE7884 #C7FE78 #78FEF2
square
#AF78FE #FE7884 #C7FE78 #78FEF2
split-complementary
#AF78FE #FEF278 #84FE78
monochromatic
#6802FA #8B3BFE #AF78FE #D3B5FE #EDE1FF

Accessibility & contrast

On white

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

On black

6.94
#AF78FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78FE
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78FE#FFFFFF#000000##000000
##AF78FE1.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4594FF
Deuteranopia (green-blind)
#5693FB
Tritanopia (blue-blind)
#9F92B0
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af78fe;
/* rgb */ color: rgb(175, 120, 254);
/* oklch */ color: oklch(68.7% 0.194 300.3);
Tailwind
colors: {
  custom: {
    50: '#caa0ff',
    500: '#af78fe',
    950: '#000000',
  },
}
SCSS
$custom: #af78fe;
$custom-light: #caa0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af78fe",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 254
  },
  "hsl": {
    "h": 264.627,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68727,
    "c": 0.19351,
    "h": 300.3
  },
  "luminance": 0.29703
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF78FE

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

Preview Lab → · Contrast checker → · Palette generator →

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