#AF78DC#AF78DC

#AF78DC is a light, vivid violet. Relative luminance 0.277; OKLCH L 66.8% C 0.153 H 308.2°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#AF78DC
RGBrgb(175, 120, 220)
HSLhsl(273, 59%, 67%)
HSVhsv(273, 45%, 86%)
CMYKcmyk(20.5%, 45.5%, 0%, 13.7%)
CIE-LABlab(59.63, 40.11, -43.10)
CIE-LCHlch(59.63, 58.88, 312.94°)
OKLaboklab(66.84% 0.0944 -0.1202)
OKLCHoklch(66.84% 0.153 308.2)
XYZxyz(37.3114, 27.7146, 71.0801)
Luminance0.2771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78DC #A5DC78
analogous
#7D78DC #AF78DC #DC78D7
triadic
#AF78DC #DCAF78 #78DCAF
tetradic
#AF78DC #DC7D78 #A5DC78 #78D7DC
square
#AF78DC #DC7D78 #A5DC78 #78D7DC
split-complementary
#AF78DC #D7DC78 #78DC7D
monochromatic
#732DAD #9247CF #AF78DC #CCA9E9 #E9D9F5

Accessibility & contrast

On white

3.21
#AF78DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#AF78DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78DC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78DC#FFFFFF#000000##000000
##AF78DC1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#608DE0
Deuteranopia (green-blind)
#6E90D9
Tritanopia (blue-blind)
#A988A0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af78dc;
/* rgb */ color: rgb(175, 120, 220);
/* oklch */ color: oklch(66.8% 0.153 308.2);
Tailwind
colors: {
  custom: {
    50: '#c9a0e7',
    500: '#af78dc',
    950: '#000000',
  },
}
SCSS
$custom: #af78dc;
$custom-light: #c9a0e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af78dc",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 273,
    "s": 58.824,
    "l": 66.667
  },
  "oklch": {
    "l": 0.6684,
    "c": 0.15281,
    "h": 308.2
  },
  "luminance": 0.27714
}

Semantic roles & 50–950 ramp

primary
#AF78DC
secondary
#D6E8C8
accent
#C61F6A
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #AF78DC

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

Preview Lab → · Contrast checker → · Palette generator →

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