#782AC8#782AC8

#782AC8 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 49.0% C 0.224 H 300.3°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#782AC8
RGBrgb(120, 42, 200)
HSLhsl(270, 65%, 47%)
HSVhsv(270, 79%, 78%)
CMYKcmyk(40%, 79%, 0%, 21.6%)
CIE-LABlab(37.52, 61.67, -67.52)
CIE-LCHlch(37.52, 91.44, 312.41°)
OKLaboklab(48.95% 0.113 -0.193)
OKLCHoklch(48.95% 0.224 300.3)
XYZxyz(18.9964, 9.8189, 55.5268)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AC8 #7AC82A
analogous
#2A2BC8 #782AC8 #C72AC8
triadic
#782AC8 #C8782A #2AC878
tetradic
#782AC8 #C82A2B #7AC82A #2AC8C7
square
#782AC8 #C82A2B #7AC82A #2AC8C7
split-complementary
#782AC8 #C8C72A #2BC82A
monochromatic
#3B1563 #5A1F95 #782AC8 #9754DB #B687E6

Accessibility & contrast

On white

7.09
#782AC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#782AC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AC8
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AC8#FFFFFF#000000##FFFFFF
##782AC81.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0057C5
Tritanopia (blue-blind)
#655679
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #782ac8;
/* rgb */ color: rgb(120, 42, 200);
/* oklch */ color: oklch(49.0% 0.224 300.3);
Tailwind
colors: {
  custom: {
    50: '#a66dda',
    500: '#782ac8',
    950: '#000000',
  },
}
SCSS
$custom: #782ac8;
$custom-light: #a66dda;
$custom-dark: #000000;
JSON
{
  "hex": "#782ac8",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 200
  },
  "hsl": {
    "h": 269.62,
    "s": 65.289,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48952,
    "c": 0.22367,
    "h": 300.3
  },
  "luminance": 0.09819
}

Semantic roles & 50–950 ramp

primary
#782AC8
secondary
#A7CF7F
accent
#E84095
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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