#782CA0#782CA0

#782CA0 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.182 H 311.2°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#782CA0
RGBrgb(120, 44, 160)
HSLhsl(279, 57%, 40%)
HSVhsv(279, 73%, 63%)
CMYKcmyk(25%, 72.5%, 0%, 37.3%)
CIE-LABlab(34.67, 51.75, -48.42)
CIE-LCHlch(34.67, 70.87, 316.90°)
OKLaboklab(45.97% 0.12 -0.1369)
OKLCHoklch(45.97% 0.182 311.2)
XYZxyz(14.9904, 8.3329, 34.0696)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA0 #54A02C
analogous
#3E2CA0 #782CA0 #A02C8E
triadic
#782CA0 #A0782C #2CA078
tetradic
#782CA0 #A03E2C #54A02C #2C8EA0
square
#782CA0 #A03E2C #54A02C #2C8EA0
split-complementary
#782CA0 #8EA02C #2CA03E
monochromatic
#301240 #541F70 #782CA0 #9A3FCA #B36FD7

Accessibility & contrast

On white

7.88
#782CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782CA0
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA0#FFFFFF#000000##FFFFFF
##782CA01.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#1A539D
Tritanopia (blue-blind)
#734663
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #782ca0;
/* rgb */ color: rgb(120, 44, 160);
/* oklch */ color: oklch(46.0% 0.182 311.2);
Tailwind
colors: {
  custom: {
    50: '#a36cbd',
    500: '#782ca0',
    950: '#000000',
  },
}
SCSS
$custom: #782ca0;
$custom-light: #a36cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca0",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 279.31,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.18205,
    "h": 311.2
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#782CA0
secondary
#87BF69
accent
#E0487C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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