#784AAA#784AAA

#784AAA is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.7% C 0.150 H 303.6°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#784AAA
RGBrgb(120, 74, 170)
HSLhsl(269, 39%, 48%)
HSVhsv(269, 56%, 67%)
CMYKcmyk(29.4%, 56.5%, 0%, 33.3%)
CIE-LABlab(40.89, 38.98, -44.42)
CIE-LCHlch(40.89, 59.09, 311.27°)
OKLaboklab(50.68% 0.0833 -0.1253)
OKLCHoklch(50.68% 0.15 303.6)
XYZxyz(17.4486, 11.7929, 39.3794)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784AAA #7CAA4A
analogous
#4A4CAA #784AAA #A84AAA
triadic
#784AAA #AA784A #4AAA78
tetradic
#784AAA #AA4A4C #7CAA4A #4AAAA8
square
#784AAA #AA4A4C #7CAA4A #4AAAA8
split-complementary
#784AAA #AAA84A #4CAA4A
monochromatic
#3C2555 #5A377F #784AAA #9770C1 #B69BD3

Accessibility & contrast

On white

6.25
#784AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#784AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784AAA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784AAA#FFFFFF#000000##FFFFFF
##784AAA1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255FAD
Deuteranopia (green-blind)
#3660A8
Tritanopia (blue-blind)
#6F5D73
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784aaa;
/* rgb */ color: rgb(120, 74, 170);
/* oklch */ color: oklch(50.7% 0.150 303.6);
Tailwind
colors: {
  custom: {
    50: '#a27ec4',
    500: '#784aaa',
    950: '#000000',
  },
}
SCSS
$custom: #784aaa;
$custom-light: #a27ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#784aaa",
  "rgb": {
    "r": 120,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 268.75,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50683,
    "c": 0.15047,
    "h": 303.6
  },
  "luminance": 0.11793
}

Semantic roles & 50–950 ramp

primary
#784AAA
secondary
#A9C090
accent
#CF5996
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784AAA

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

Preview Lab → · Contrast checker → · Palette generator →

#784AAA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva