#AF78EA#AF78EA

#AF78EA is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.6% C 0.170 H 304.5°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#AF78EA
RGBrgb(175, 120, 234)
HSLhsl(269, 73%, 69%)
HSVhsv(269, 49%, 92%)
CMYKcmyk(25.2%, 48.7%, 0%, 8.2%)
CIE-LABlab(60.33, 43.32, -49.81)
CIE-LCHlch(60.33, 66.02, 311.01°)
OKLaboklab(67.59% 0.0962 -0.1397)
OKLCHoklch(67.59% 0.17 304.5)
XYZxyz(39.2438, 28.4876, 81.2572)
Luminance0.2849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78EA #B3EA78
analogous
#787AEA #AF78EA #E878EA
triadic
#AF78EA #EAAF78 #78EAAF
tetradic
#AF78EA #EA787A #B3EA78 #78EAE8
square
#AF78EA #EA787A #B3EA78 #78EAE8
split-complementary
#AF78EA #EAE878 #7AEA78
monochromatic
#711FC8 #9043E2 #AF78EA #CEADF2 #EEE2FA

Accessibility & contrast

On white

3.14
#AF78EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#AF78EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78EA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78EA#FFFFFF#000000##000000
##AF78EA1.003.146.706.70
#FFFFFF3.141.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5790EE
Deuteranopia (green-blind)
#6692E7
Tritanopia (blue-blind)
#A58CA6
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af78ea;
/* rgb */ color: rgb(175, 120, 234);
/* oklch */ color: oklch(67.6% 0.170 304.5);
Tailwind
colors: {
  custom: {
    50: '#c9a0f1',
    500: '#af78ea',
    950: '#000000',
  },
}
SCSS
$custom: #af78ea;
$custom-light: #c9a0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af78ea",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 268.947,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67587,
    "c": 0.16958,
    "h": 304.5
  },
  "luminance": 0.28487
}

Semantic roles & 50–950 ramp

primary
#AF78EA
secondary
#DFEFCE
accent
#D51076
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF78EA

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

Preview Lab → · Contrast checker → · Palette generator →

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