#782DB7#782DB7

#782DB7 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.204 H 304.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#782DB7
RGBrgb(120, 45, 183)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 75%, 72%)
CMYKcmyk(34.4%, 75.4%, 0%, 28.2%)
CIE-LABlab(36.53, 56.53, -59.14)
CIE-LCHlch(36.53, 81.81, 313.71°)
OKLaboklab(47.84% 0.1148 -0.1684)
OKLCHoklch(47.84% 0.204 304.3)
XYZxyz(17.2294, 9.2888, 45.6758)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DB7 #6CB72D
analogous
#332DB7 #782DB7 #B72DB1
triadic
#782DB7 #B7782D #2DB778
tetradic
#782DB7 #B7332D #6CB72D #2DB1B7
square
#782DB7 #B7332D #6CB72D #2DB1B7
split-complementary
#782DB7 #B1B72D #2DB733
monochromatic
#381555 #582186 #782DB7 #964ED3 #B37FDF

Accessibility & contrast

On white

7.35
#782DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#782DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DB7
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DB7#FFFFFF#000000##FFFFFF
##782DB71.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#6C5070
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782db7;
/* rgb */ color: rgb(120, 45, 183);
/* oklch */ color: oklch(47.8% 0.204 304.3);
Tailwind
colors: {
  custom: {
    50: '#a56ece',
    500: '#782db7',
    950: '#000000',
  },
}
SCSS
$custom: #782db7;
$custom-light: #a56ece;
$custom-dark: #000000;
JSON
{
  "hex": "#782db7",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 272.609,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47835,
    "c": 0.20386,
    "h": 304.3
  },
  "luminance": 0.09289
}

Semantic roles & 50–950 ramp

primary
#782DB7
secondary
#9CC878
accent
#E4448D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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