#782CA8#782CA8

#782CA8 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.190 H 308.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#782CA8
RGBrgb(120, 44, 168)
HSLhsl(277, 58%, 42%)
HSVhsv(277, 74%, 66%)
CMYKcmyk(28.6%, 73.8%, 0%, 34.1%)
CIE-LABlab(35.25, 53.53, -52.30)
CIE-LCHlch(35.25, 74.84, 315.66°)
OKLaboklab(46.57% 0.1187 -0.1483)
OKLCHoklch(46.57% 0.19 308.7)
XYZxyz(15.7128, 8.6219, 37.8746)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA8 #5CA82C
analogous
#3A2CA8 #782CA8 #A82C9A
triadic
#782CA8 #A8782C #2CA878
tetradic
#782CA8 #A83A2C #5CA82C #2C9AA8
square
#782CA8 #A83A2C #5CA82C #2C9AA8
split-complementary
#782CA8 #9AA82C #2CA83A
monochromatic
#331347 #551F78 #782CA8 #9843CE #B374DB

Accessibility & contrast

On white

7.71
#782CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#782CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CA8
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA8#FFFFFF#000000##FFFFFF
##782CA81.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0554A5
Tritanopia (blue-blind)
#714968
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ca8;
/* rgb */ color: rgb(120, 44, 168);
/* oklch */ color: oklch(46.6% 0.190 308.7);
Tailwind
colors: {
  custom: {
    50: '#a46dc3',
    500: '#782ca8',
    950: '#000000',
  },
}
SCSS
$custom: #782ca8;
$custom-light: #a46dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca8",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 276.774,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46566,
    "c": 0.18999,
    "h": 308.7
  },
  "luminance": 0.08622
}

Semantic roles & 50–950 ramp

primary
#782CA8
secondary
#8EC26E
accent
#E24682
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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