#AF78DD#AF78DD

#AF78DD is a light, vivid violet. Relative luminance 0.278; OKLCH L 66.9% C 0.154 H 307.9°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#AF78DD
RGBrgb(175, 120, 221)
HSLhsl(273, 60%, 67%)
HSVhsv(273, 46%, 87%)
CMYKcmyk(20.8%, 45.7%, 0%, 13.3%)
CIE-LABlab(59.68, 40.34, -43.58)
CIE-LCHlch(59.68, 59.39, 312.78°)
OKLaboklab(66.89% 0.0945 -0.1216)
OKLCHoklch(66.89% 0.154 307.9)
XYZxyz(37.4443, 27.7678, 71.7797)
Luminance0.2777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF78DD #A6DD78
analogous
#7D78DD #AF78DD #DD78D9
triadic
#AF78DD #DDAF78 #78DDAF
tetradic
#AF78DD #DD7D78 #A6DD78 #78D9DD
square
#AF78DD #DD7D78 #A6DD78 #78D9DD
split-complementary
#AF78DD #D9DD78 #78DD7D
monochromatic
#732CAF #9247D1 #AF78DD #CCA9E9 #E9DAF6

Accessibility & contrast

On white

3.20
#AF78DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#AF78DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF78DD
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF78DD#FFFFFF#000000##000000
##AF78DD1.003.206.556.55
#FFFFFF3.201.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8EE1
Deuteranopia (green-blind)
#6D90DA
Tritanopia (blue-blind)
#A988A0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af78dd;
/* rgb */ color: rgb(175, 120, 221);
/* oklch */ color: oklch(66.9% 0.154 307.9);
Tailwind
colors: {
  custom: {
    50: '#c9a0e8',
    500: '#af78dd',
    950: '#000000',
  },
}
SCSS
$custom: #af78dd;
$custom-light: #c9a0e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af78dd",
  "rgb": {
    "r": 175,
    "g": 120,
    "b": 221
  },
  "hsl": {
    "h": 272.673,
    "s": 59.763,
    "l": 66.863
  },
  "oklch": {
    "l": 0.66892,
    "c": 0.154,
    "h": 307.9
  },
  "luminance": 0.27767
}

Semantic roles & 50–950 ramp

primary
#AF78DD
secondary
#D7E9C8
accent
#C71E6B
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #AF78DD

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

Preview Lab → · Contrast checker → · Palette generator →

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