#782AA9#782AA9

#782AA9 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.193 H 308.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#782AA9
RGBrgb(120, 42, 169)
HSLhsl(277, 60%, 41%)
HSVhsv(277, 75%, 66%)
CMYKcmyk(29%, 75.1%, 0%, 33.7%)
CIE-LABlab(35.03, 54.58, -53.25)
CIE-LCHlch(35.03, 76.25, 315.70°)
OKLaboklab(46.44% 0.1205 -0.1511)
OKLCHoklch(46.44% 0.193 308.6)
XYZxyz(15.7336, 8.5138, 38.3429)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AA9 #5BA92A
analogous
#382AA9 #782AA9 #A92A9B
triadic
#782AA9 #A9782A #2AA978
tetradic
#782AA9 #A9382A #5BA92A #2A9BA9
square
#782AA9 #A9382A #5BA92A #2A9BA9
split-complementary
#782AA9 #9BA92A #2AA938
monochromatic
#321247 #551E78 #782AA9 #9841D0 #B372DC

Accessibility & contrast

On white

7.77
#782AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#782AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AA9
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AA9#FFFFFF#000000##FFFFFF
##782AA91.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAD
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#704868
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782aa9;
/* rgb */ color: rgb(120, 42, 169);
/* oklch */ color: oklch(46.4% 0.193 308.6);
Tailwind
colors: {
  custom: {
    50: '#a46cc3',
    500: '#782aa9',
    950: '#000000',
  },
}
SCSS
$custom: #782aa9;
$custom-light: #a46cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#782aa9",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 276.85,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46438,
    "c": 0.19325,
    "h": 308.6
  },
  "luminance": 0.08514
}

Semantic roles & 50–950 ramp

primary
#782AA9
secondary
#8DC36C
accent
#E34482
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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