#AF78EE#AF78EE

#AF78EE is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.8% C 0.174 H 303.6°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#AF78EE
RGBrgb(175, 120, 238)
HSLhsl(268, 78%, 70%)
HSVhsv(268, 50%, 93%)
CMYKcmyk(26.5%, 49.6%, 0%, 6.7%)
CIE-LABlab(60.53, 44.26, -51.71)
CIE-LCHlch(60.53, 68.06, 310.56°)
OKLaboklab(67.81% 0.0966 -0.1452)
OKLCHoklch(67.81% 0.174 303.6)
XYZxyz(39.8249, 28.7200, 84.3178)
Luminance0.2872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78EE #B7EE78
analogous
#787CEE #AF78EE #EA78EE
triadic
#AF78EE #EEAF78 #78EEAF
tetradic
#AF78EE #EE787C #B7EE78 #78EEEA
square
#AF78EE #EE787C #B7EE78 #78EEEA
split-complementary
#AF78EE #EEEA78 #7CEE78
monochromatic
#701AD1 #8F42E7 #AF78EE #CFAEF5 #EFE4FC

Accessibility & contrast

On white

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

On black

6.74
#AF78EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78EE
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78EE#FFFFFF#000000##000000
##AF78EE1.003.116.746.74
#FFFFFF3.111.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5491F2
Deuteranopia (green-blind)
#6392EB
Tritanopia (blue-blind)
#A48DA8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af78ee;
/* rgb */ color: rgb(175, 120, 238);
/* oklch */ color: oklch(67.8% 0.174 303.6);
Tailwind
colors: {
  custom: {
    50: '#caa0f4',
    500: '#af78ee',
    950: '#000000',
  },
}
SCSS
$custom: #af78ee;
$custom-light: #caa0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af78ee",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 267.966,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67808,
    "c": 0.17439,
    "h": 303.6
  },
  "luminance": 0.2872
}

Semantic roles & 50–950 ramp

primary
#AF78EE
secondary
#E2F1D1
accent
#DA0C7A
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF78EE

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

Preview Lab → · Contrast checker → · Palette generator →

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