#782AAA#782AAA

#782AAA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.194 H 308.3°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#782AAA
RGBrgb(120, 42, 170)
HSLhsl(277, 60%, 42%)
HSVhsv(277, 75%, 67%)
CMYKcmyk(29.4%, 75.3%, 0%, 33.3%)
CIE-LABlab(35.11, 54.80, -53.73)
CIE-LCHlch(35.11, 76.74, 315.57°)
OKLaboklab(46.51% 0.1203 -0.1525)
OKLCHoklch(46.51% 0.194 308.3)
XYZxyz(15.8279, 8.5515, 38.8392)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AAA #5CAA2A
analogous
#382AAA #782AAA #AA2A9C
triadic
#782AAA #AA782A #2AAA78
tetradic
#782AAA #AA382A #5CAA2A #2A9CAA
square
#782AAA #AA382A #5CAA2A #2A9CAA
split-complementary
#782AAA #9CAA2A #2AAA38
monochromatic
#331248 #551E79 #782AAA #9841D0 #B372DC

Accessibility & contrast

On white

7.75
#782AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#782AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AAA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AAA#FFFFFF#000000##FFFFFF
##782AAA1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0053A7
Tritanopia (blue-blind)
#704968
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782aaa;
/* rgb */ color: rgb(120, 42, 170);
/* oklch */ color: oklch(46.5% 0.194 308.3);
Tailwind
colors: {
  custom: {
    50: '#a46cc4',
    500: '#782aaa',
    950: '#000000',
  },
}
SCSS
$custom: #782aaa;
$custom-light: #a46cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#782aaa",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 276.563,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46514,
    "c": 0.19423,
    "h": 308.3
  },
  "luminance": 0.08551
}

Semantic roles & 50–950 ramp

primary
#782AAA
secondary
#8EC36C
accent
#E44482
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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