#782DB8#782DB8

#782DB8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.205 H 304.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#782DB8
RGBrgb(120, 45, 184)
HSLhsl(272, 61%, 45%)
HSVhsv(272, 76%, 72%)
CMYKcmyk(34.8%, 75.5%, 0%, 27.8%)
CIE-LABlab(36.61, 56.76, -59.60)
CIE-LCHlch(36.61, 82.31, 313.60°)
OKLaboklab(47.91% 0.1146 -0.1698)
OKLCHoklch(47.91% 0.205 304)
XYZxyz(17.3338, 9.3306, 46.2259)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DB8 #6DB82D
analogous
#322DB8 #782DB8 #B82DB3
triadic
#782DB8 #B8782D #2DB878
tetradic
#782DB8 #B8322D #6DB82D #2DB3B8
square
#782DB8 #B8322D #6DB82D #2DB3B8
split-complementary
#782DB8 #B3B82D #2DB832
monochromatic
#381556 #582187 #782DB8 #964ED4 #B480E0

Accessibility & contrast

On white

7.33
#782DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#782DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DB8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DB8#FFFFFF#000000##FFFFFF
##782DB81.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#6B5071
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782db8;
/* rgb */ color: rgb(120, 45, 184);
/* oklch */ color: oklch(47.9% 0.205 304.0);
Tailwind
colors: {
  custom: {
    50: '#a56ece',
    500: '#782db8',
    950: '#000000',
  },
}
SCSS
$custom: #782db8;
$custom-light: #a56ece;
$custom-dark: #000000;
JSON
{
  "hex": "#782db8",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 272.374,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47914,
    "c": 0.20486,
    "h": 304
  },
  "luminance": 0.09331
}

Semantic roles & 50–950 ramp

primary
#782DB8
secondary
#9DC978
accent
#E4448E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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