#AF78EB#AF78EB

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

Color values

HEX#AF78EB
RGBrgb(175, 120, 235)
HSLhsl(269, 74%, 70%)
HSVhsv(269, 49%, 92%)
CMYKcmyk(25.5%, 48.9%, 0%, 7.8%)
CIE-LABlab(60.38, 43.56, -50.29)
CIE-LCHlch(60.38, 66.53, 310.90°)
OKLaboklab(67.64% 0.0963 -0.1411)
OKLCHoklch(67.64% 0.171 304.3)
XYZxyz(39.3878, 28.5452, 82.0159)
Luminance0.2854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78EB #B4EB78
analogous
#787AEB #AF78EB #E978EB
triadic
#AF78EB #EBAF78 #78EBAF
tetradic
#AF78EB #EB787A #B4EB78 #78EBE9
square
#AF78EB #EB787A #B4EB78 #78EBE9
split-complementary
#AF78EB #EBE978 #7AEB78
monochromatic
#711ECB #8F43E3 #AF78EB #CFADF3 #EEE3FB

Accessibility & contrast

On white

3.13
#AF78EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#AF78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78EB
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78EB#FFFFFF#000000##000000
##AF78EB1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5690EF
Deuteranopia (green-blind)
#6592E8
Tritanopia (blue-blind)
#A58CA7
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af78eb;
/* rgb */ color: rgb(175, 120, 235);
/* oklch */ color: oklch(67.6% 0.171 304.3);
Tailwind
colors: {
  custom: {
    50: '#c9a0f2',
    500: '#af78eb',
    950: '#000000',
  },
}
SCSS
$custom: #af78eb;
$custom-light: #c9a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af78eb",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 268.696,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67642,
    "c": 0.17079,
    "h": 304.3
  },
  "luminance": 0.28545
}

Semantic roles & 50–950 ramp

primary
#AF78EB
secondary
#E0F0CF
accent
#D60F77
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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