#782D9E#782D9E

#782D9E is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.179 H 311.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#782D9E
RGBrgb(120, 45, 158)
HSLhsl(280, 56%, 40%)
HSVhsv(280, 72%, 62%)
CMYKcmyk(24.1%, 71.5%, 0%, 38%)
CIE-LABlab(34.68, 50.88, -47.19)
CIE-LCHlch(34.68, 69.40, 317.15°)
OKLaboklab(45.94% 0.1192 -0.1333)
OKLCHoklch(45.94% 0.179 311.8)
XYZxyz(14.8545, 8.3389, 33.1682)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782D9E #539E2D
analogous
#402D9E #782D9E #9E2D8C
triadic
#782D9E #9E782D #2D9E78
tetradic
#782D9E #9E402D #539E2D #2D8C9E
square
#782D9E #9E402D #539E2D #2D8C9E
split-complementary
#782D9E #8C9E2D #2D9E40
monochromatic
#30123F #541F6E #782D9E #9B40C9 #B46FD6

Accessibility & contrast

On white

7.87
#782D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#782D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782D9E
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782D9E#FFFFFF#000000##FFFFFF
##782D9E1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#1F539C
Tritanopia (blue-blind)
#734562
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782d9e;
/* rgb */ color: rgb(120, 45, 158);
/* oklch */ color: oklch(45.9% 0.179 311.8);
Tailwind
colors: {
  custom: {
    50: '#a36dbb',
    500: '#782d9e',
    950: '#000000',
  },
}
SCSS
$custom: #782d9e;
$custom-light: #a36dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#782d9e",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 279.823,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45936,
    "c": 0.17882,
    "h": 311.8
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

primary
#782D9E
secondary
#86BD69
accent
#DF497B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #782D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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