#AF78EF#AF78EF

#AF78EF is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.9% C 0.176 H 303.4°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#AF78EF
RGBrgb(175, 120, 239)
HSLhsl(268, 79%, 70%)
HSVhsv(268, 50%, 94%)
CMYKcmyk(26.8%, 49.8%, 0%, 6.3%)
CIE-LABlab(60.59, 44.50, -52.18)
CIE-LCHlch(60.59, 68.57, 310.46°)
OKLaboklab(67.86% 0.0966 -0.1466)
OKLCHoklch(67.86% 0.176 303.4)
XYZxyz(39.9722, 28.7790, 85.0937)
Luminance0.2878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78EF #B8EF78
analogous
#787CEF #AF78EF #EA78EF
triadic
#AF78EF #EFAF78 #78EFAF
tetradic
#AF78EF #EF787C #B8EF78 #78EFEA
square
#AF78EF #EF787C #B8EF78 #78EFEA
split-complementary
#AF78EF #EFEA78 #7CEF78
monochromatic
#6F19D4 #8F41E9 #AF78EF #CFAFF5 #EFE4FC

Accessibility & contrast

On white

3.11
#AF78EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#AF78EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78EF
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78EF#FFFFFF#000000##000000
##AF78EF1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5391F3
Deuteranopia (green-blind)
#6292EC
Tritanopia (blue-blind)
#A48EA9
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af78ef;
/* rgb */ color: rgb(175, 120, 239);
/* oklch */ color: oklch(67.9% 0.176 303.4);
Tailwind
colors: {
  custom: {
    50: '#caa0f5',
    500: '#af78ef',
    950: '#000000',
  },
}
SCSS
$custom: #af78ef;
$custom-light: #caa0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af78ef",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 267.731,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.67864,
    "c": 0.17558,
    "h": 303.4
  },
  "luminance": 0.28779
}

Semantic roles & 50–950 ramp

primary
#AF78EF
secondary
#E3F2D1
accent
#DB0A7B
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF78EF

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

Preview Lab → · Contrast checker → · Palette generator →

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