#782DB1#782DB1

#782DB1 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.4% C 0.198 H 305.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#782DB1
RGBrgb(120, 45, 177)
HSLhsl(274, 59%, 44%)
HSVhsv(274, 75%, 69%)
CMYKcmyk(32.2%, 74.6%, 0%, 30.6%)
CIE-LABlab(36.07, 55.15, -56.34)
CIE-LCHlch(36.07, 78.84, 314.39°)
OKLaboklab(47.36% 0.1161 -0.1602)
OKLCHoklch(47.36% 0.198 305.9)
XYZxyz(16.6182, 9.0443, 42.4567)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DB1 #66B12D
analogous
#362DB1 #782DB1 #B12DA8
triadic
#782DB1 #B1782D #2DB178
tetradic
#782DB1 #B1362D #66B12D #2DA8B1
square
#782DB1 #B1362D #66B12D #2DA8B1
split-complementary
#782DB1 #A8B12D #2DB136
monochromatic
#36144F #572180 #782DB1 #974AD1 #B37BDD

Accessibility & contrast

On white

7.48
#782DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#782DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DB1
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DB1#FFFFFF#000000##FFFFFF
##782DB11.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#6E4D6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782db1;
/* rgb */ color: rgb(120, 45, 177);
/* oklch */ color: oklch(47.4% 0.198 305.9);
Tailwind
colors: {
  custom: {
    50: '#a46dc9',
    500: '#782db1',
    950: '#000000',
  },
}
SCSS
$custom: #782db1;
$custom-light: #a46dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#782db1",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 274.091,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47361,
    "c": 0.19784,
    "h": 305.9
  },
  "luminance": 0.09044
}

Semantic roles & 50–950 ramp

primary
#782DB1
secondary
#97C674
accent
#E34589
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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