#782DB6#782DB6

#782DB6 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.203 H 304.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#782DB6
RGBrgb(120, 45, 182)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 71%)
CMYKcmyk(34.1%, 75.3%, 0%, 28.6%)
CIE-LABlab(36.46, 56.30, -58.68)
CIE-LCHlch(36.46, 81.32, 313.82°)
OKLaboklab(47.76% 0.115 -0.1671)
OKLCHoklch(47.76% 0.203 304.5)
XYZxyz(17.1257, 9.2473, 45.1296)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DB6 #6BB62D
analogous
#342DB6 #782DB6 #B62DAF
triadic
#782DB6 #B6782D #2DB678
tetradic
#782DB6 #B6342D #6BB62D #2DAFB6
square
#782DB6 #B6342D #6BB62D #2DAFB6
split-complementary
#782DB6 #AFB62D #2DB634
monochromatic
#371554 #582185 #782DB6 #964DD3 #B37EDF

Accessibility & contrast

On white

7.37
#782DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#782DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DB6
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DB6#FFFFFF#000000##FFFFFF
##782DB61.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#6C4F70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782db6;
/* rgb */ color: rgb(120, 45, 182);
/* oklch */ color: oklch(47.8% 0.203 304.5);
Tailwind
colors: {
  custom: {
    50: '#a56ecd',
    500: '#782db6',
    950: '#000000',
  },
}
SCSS
$custom: #782db6;
$custom-light: #a56ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#782db6",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 272.847,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47755,
    "c": 0.20285,
    "h": 304.5
  },
  "luminance": 0.09247
}

Semantic roles & 50–950 ramp

primary
#782DB6
secondary
#9CC877
accent
#E3448C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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