#AF78EC#AF78EC

#AF78EC is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.7% C 0.172 H 304.1°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#AF78EC
RGBrgb(175, 120, 236)
HSLhsl(268, 75%, 70%)
HSVhsv(268, 49%, 93%)
CMYKcmyk(25.8%, 49.2%, 0%, 7.5%)
CIE-LABlab(60.43, 43.79, -50.76)
CIE-LCHlch(60.43, 67.04, 310.78°)
OKLaboklab(67.7% 0.0964 -0.1425)
OKLCHoklch(67.7% 0.172 304.1)
XYZxyz(39.5327, 28.6032, 82.7789)
Luminance0.2860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78EC #B5EC78
analogous
#787BEC #AF78EC #E978EC
triadic
#AF78EC #ECAF78 #78ECAF
tetradic
#AF78EC #EC787B #B5EC78 #78ECE9
square
#AF78EC #EC787B #B5EC78 #78ECE9
split-complementary
#AF78EC #ECE978 #7BEC78
monochromatic
#701DCD #8F42E4 #AF78EC #CFAEF4 #EFE3FB

Accessibility & contrast

On white

3.12
#AF78EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#AF78EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78EC
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78EC#FFFFFF#000000##000000
##AF78EC1.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5590F0
Deuteranopia (green-blind)
#6492E9
Tritanopia (blue-blind)
#A58DA7
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af78ec;
/* rgb */ color: rgb(175, 120, 236);
/* oklch */ color: oklch(67.7% 0.172 304.1);
Tailwind
colors: {
  custom: {
    50: '#c9a0f3',
    500: '#af78ec',
    950: '#000000',
  },
}
SCSS
$custom: #af78ec;
$custom-light: #c9a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af78ec",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 268.448,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67697,
    "c": 0.17199,
    "h": 304.1
  },
  "luminance": 0.28603
}

Semantic roles & 50–950 ramp

primary
#AF78EC
secondary
#E1F0D0
accent
#D70E78
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #AF78EC

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

Preview Lab → · Contrast checker → · Palette generator →

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