#782CC1#782CC1

#782CC1 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.215 H 301.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#782CC1
RGBrgb(120, 44, 193)
HSLhsl(271, 63%, 46%)
HSVhsv(271, 77%, 76%)
CMYKcmyk(37.8%, 77.2%, 0%, 24.3%)
CIE-LABlab(37.20, 59.26, -63.95)
CIE-LCHlch(37.20, 87.19, 312.82°)
OKLaboklab(48.55% 0.1133 -0.1826)
OKLCHoklch(48.55% 0.215 301.8)
XYZxyz(18.2697, 9.6446, 51.3408)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CC1 #75C12C
analogous
#2E2CC1 #782CC1 #C12CC0
triadic
#782CC1 #C1782C #2CC178
tetradic
#782CC1 #C12E2C #75C12C #2CC0C1
square
#782CC1 #C12E2C #75C12C #2CC0C1
split-complementary
#782CC1 #C0C12C #2CC12E
monochromatic
#3A155D #59218F #782CC1 #9653D8 #B584E3

Accessibility & contrast

On white

7.17
#782CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#782CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CC1
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CC1#FFFFFF#000000##FFFFFF
##782CC11.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C5
Deuteranopia (green-blind)
#0057BE
Tritanopia (blue-blind)
#685376
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #782cc1;
/* rgb */ color: rgb(120, 44, 193);
/* oklch */ color: oklch(48.5% 0.215 301.8);
Tailwind
colors: {
  custom: {
    50: '#a66ed5',
    500: '#782cc1',
    950: '#000000',
  },
}
SCSS
$custom: #782cc1;
$custom-light: #a66ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#782cc1",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 193
  },
  "hsl": {
    "h": 270.604,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48549,
    "c": 0.21487,
    "h": 301.8
  },
  "luminance": 0.09645
}

Semantic roles & 50–950 ramp

primary
#782CC1
secondary
#A4CC7D
accent
#E64292
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #782CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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