#782BB9#782BB9

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

Color values

HEX#782BB9
RGBrgb(120, 43, 185)
HSLhsl(273, 62%, 45%)
HSVhsv(273, 77%, 73%)
CMYKcmyk(35.1%, 76.8%, 0%, 27.5%)
CIE-LABlab(36.41, 57.80, -60.52)
CIE-LCHlch(36.41, 83.69, 313.68°)
OKLaboklab(47.8% 0.1161 -0.1725)
OKLCHoklch(47.8% 0.208 303.9)
XYZxyz(17.3645, 9.2236, 46.7551)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BB9 #6CB92B
analogous
#312BB9 #782BB9 #B92BB3
triadic
#782BB9 #B9782B #2BB978
tetradic
#782BB9 #B9312B #6CB92B #2BB3B9
square
#782BB9 #B9312B #6CB92B #2BB3B9
split-complementary
#782BB9 #B3B92B #2BB931
monochromatic
#381456 #581F87 #782BB9 #964CD5 #B37EE1

Accessibility & contrast

On white

7.38
#782BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782BB9
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BB9#FFFFFF#000000##FFFFFF
##782BB91.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0055B6
Tritanopia (blue-blind)
#6B5071
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782bb9;
/* rgb */ color: rgb(120, 43, 185);
/* oklch */ color: oklch(47.8% 0.208 303.9);
Tailwind
colors: {
  custom: {
    50: '#a56dcf',
    500: '#782bb9',
    950: '#000000',
  },
}
SCSS
$custom: #782bb9;
$custom-light: #a56dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#782bb9",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 272.535,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47797,
    "c": 0.20794,
    "h": 303.9
  },
  "luminance": 0.09224
}

Semantic roles & 50–950 ramp

primary
#782BB9
secondary
#9CC976
accent
#E5428D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #782BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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