#782CAA#782CAA

#782CAA is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.192 H 308.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#782CAA
RGBrgb(120, 44, 170)
HSLhsl(276, 59%, 42%)
HSVhsv(276, 74%, 67%)
CMYKcmyk(29.4%, 74.1%, 0%, 33.3%)
CIE-LABlab(35.39, 53.98, -53.26)
CIE-LCHlch(35.39, 75.83, 315.38°)
OKLaboklab(46.72% 0.1184 -0.1512)
OKLCHoklch(46.72% 0.192 308.1)
XYZxyz(15.9006, 8.6970, 38.8635)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CAA #5EAA2C
analogous
#392CAA #782CAA #AA2C9D
triadic
#782CAA #AA782C #2CAA78
tetradic
#782CAA #AA392C #5EAA2C #2C9DAA
square
#782CAA #AA392C #5EAA2C #2C9DAA
split-complementary
#782CAA #9DAA2C #2CAA39
monochromatic
#331349 #561F79 #782CAA #9844CF #B375DB

Accessibility & contrast

On white

7.67
#782CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#782CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CAA
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CAA#FFFFFF#000000##FFFFFF
##782CAA1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0054A7
Tritanopia (blue-blind)
#704A69
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782caa;
/* rgb */ color: rgb(120, 44, 170);
/* oklch */ color: oklch(46.7% 0.192 308.1);
Tailwind
colors: {
  custom: {
    50: '#a46dc4',
    500: '#782caa',
    950: '#000000',
  },
}
SCSS
$custom: #782caa;
$custom-light: #a46dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#782caa",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 276.19,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46718,
    "c": 0.19199,
    "h": 308.1
  },
  "luminance": 0.08697
}

Semantic roles & 50–950 ramp

primary
#782CAA
secondary
#90C36F
accent
#E24684
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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