#782DC0#782DC0

#782DC0 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.213 H 302.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#782DC0
RGBrgb(120, 45, 192)
HSLhsl(271, 62%, 46%)
HSVhsv(271, 77%, 75%)
CMYKcmyk(37.5%, 76.6%, 0%, 24.7%)
CIE-LABlab(37.25, 58.63, -63.27)
CIE-LCHlch(37.25, 86.26, 312.82°)
OKLaboklab(48.56% 0.1127 -0.1806)
OKLCHoklch(48.56% 0.213 302)
XYZxyz(18.1962, 9.6755, 50.7679)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DC0 #75C02D
analogous
#2F2DC0 #782DC0 #C02DBF
triadic
#782DC0 #C0782D #2DC078
tetradic
#782DC0 #C02F2D #75C02D #2DBFC0
square
#782DC0 #C02F2D #75C02D #2DBFC0
split-complementary
#782DC0 #BFC02D #2DC02F
monochromatic
#3A165D #59218E #782DC0 #9653D7 #B585E2

Accessibility & contrast

On white

7.15
#782DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#782DC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DC0
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DC0#FFFFFF#000000##FFFFFF
##782DC01.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#685375
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #782dc0;
/* rgb */ color: rgb(120, 45, 192);
/* oklch */ color: oklch(48.6% 0.213 302.0);
Tailwind
colors: {
  custom: {
    50: '#a56ed4',
    500: '#782dc0',
    950: '#000000',
  },
}
SCSS
$custom: #782dc0;
$custom-light: #a56ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#782dc0",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 270.612,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48563,
    "c": 0.21287,
    "h": 302
  },
  "luminance": 0.09676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #782DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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