#AA78DB#AA78DB

#AA78DB is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.3% C 0.150 H 306.0°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#AA78DB
RGBrgb(170, 120, 219)
HSLhsl(270, 58%, 66%)
HSVhsv(270, 45%, 86%)
CMYKcmyk(22.4%, 45.2%, 0%, 14.1%)
CIE-LABlab(59.06, 38.48, -43.47)
CIE-LCHlch(59.06, 58.06, 311.52°)
OKLaboklab(66.28% 0.0882 -0.1214)
OKLCHoklch(66.28% 0.15 306)
XYZxyz(36.0776, 27.0937, 70.3331)
Luminance0.2709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA78DB #A9DB78
analogous
#7978DB #AA78DB #DB78DB
triadic
#AA78DB #DBAA78 #78DBAA
tetradic
#AA78DB #DB7978 #A9DB78 #78DBDB
square
#AA78DB #DB7978 #A9DB78 #78DBDB
split-complementary
#AA78DB #DBDB78 #78DB79
monochromatic
#6D2EAB #8C48CE #AA78DB #C8A8E8 #E7D9F5

Accessibility & contrast

On white

3.27
#AA78DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#AA78DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA78DB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA78DB#FFFFFF#000000##000000
##AA78DB1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8CDF
Deuteranopia (green-blind)
#6B8ED8
Tritanopia (blue-blind)
#A2889F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #aa78db;
/* rgb */ color: rgb(170, 120, 219);
/* oklch */ color: oklch(66.3% 0.150 306.0);
Tailwind
colors: {
  custom: {
    50: '#c5a0e6',
    500: '#aa78db',
    950: '#000000',
  },
}
SCSS
$custom: #aa78db;
$custom-light: #c5a0e6;
$custom-dark: #000000;
JSON
{
  "hex": "#aa78db",
  "rgb": {
    "r": 170,
    "g": 120,
    "b": 219
  },
  "hsl": {
    "h": 270.303,
    "s": 57.895,
    "l": 66.471
  },
  "oklch": {
    "l": 0.66279,
    "c": 0.15004,
    "h": 306
  },
  "luminance": 0.27093
}

Semantic roles & 50–950 ramp

primary
#AA78DB
secondary
#D7E7C7
accent
#C52072
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#130F16
muted
#827E84

Preview Lab

Preview with #AA78DB

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

Preview Lab → · Contrast checker → · Palette generator →

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