#782AA8#782AA8

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

Color values

HEX#782AA8
RGBrgb(120, 42, 168)
HSLhsl(277, 60%, 41%)
HSVhsv(277, 75%, 66%)
CMYKcmyk(28.6%, 75%, 0%, 34.1%)
CIE-LABlab(34.96, 54.35, -52.77)
CIE-LCHlch(34.96, 75.76, 315.85°)
OKLaboklab(46.36% 0.1207 -0.1497)
OKLCHoklch(46.36% 0.192 308.9)
XYZxyz(15.6401, 8.4764, 37.8504)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AA8 #5AA82A
analogous
#392AA8 #782AA8 #A82A99
triadic
#782AA8 #A8782A #2AA878
tetradic
#782AA8 #A8392A #5AA82A #2A99A8
square
#782AA8 #A8392A #5AA82A #2A99A8
split-complementary
#782AA8 #99A82A #2AA839
monochromatic
#321246 #551E77 #782AA8 #9940CF #B371DB

Accessibility & contrast

On white

7.79
#782AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782AA8
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AA8#FFFFFF#000000##FFFFFF
##782AA81.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#714867
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782aa8;
/* rgb */ color: rgb(120, 42, 168);
/* oklch */ color: oklch(46.4% 0.192 308.9);
Tailwind
colors: {
  custom: {
    50: '#a46cc3',
    500: '#782aa8',
    950: '#000000',
  },
}
SCSS
$custom: #782aa8;
$custom-light: #a46cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#782aa8",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 277.143,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46361,
    "c": 0.19227,
    "h": 308.9
  },
  "luminance": 0.08476
}

Semantic roles & 50–950 ramp

primary
#782AA8
secondary
#8CC36B
accent
#E34581
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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