#782DB5#782DB5

#782DB5 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.202 H 304.8°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#782DB5
RGBrgb(120, 45, 181)
HSLhsl(273, 60%, 44%)
HSVhsv(273, 75%, 71%)
CMYKcmyk(33.7%, 75.1%, 0%, 29%)
CIE-LABlab(36.38, 56.07, -58.21)
CIE-LCHlch(36.38, 80.82, 313.93°)
OKLaboklab(47.68% 0.1153 -0.1657)
OKLCHoklch(47.68% 0.202 304.8)
XYZxyz(17.0227, 9.2061, 44.5873)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DB5 #6AB52D
analogous
#342DB5 #782DB5 #B52DAE
triadic
#782DB5 #B5782D #2DB578
tetradic
#782DB5 #B5342D #6AB52D #2DAEB5
square
#782DB5 #B5342D #6AB52D #2DAEB5
split-complementary
#782DB5 #AEB52D #2DB534
monochromatic
#371553 #582184 #782DB5 #974DD3 #B37EDF

Accessibility & contrast

On white

7.39
#782DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#782DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DB5
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DB5#FFFFFF#000000##FFFFFF
##782DB51.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#6C4F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782db5;
/* rgb */ color: rgb(120, 45, 181);
/* oklch */ color: oklch(47.7% 0.202 304.8);
Tailwind
colors: {
  custom: {
    50: '#a46ecc',
    500: '#782db5',
    950: '#000000',
  },
}
SCSS
$custom: #782db5;
$custom-light: #a46ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#782db5",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 273.088,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47676,
    "c": 0.20186,
    "h": 304.8
  },
  "luminance": 0.09206
}

Semantic roles & 50–950 ramp

primary
#782DB5
secondary
#9BC776
accent
#E3448C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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