#782BB4#782BB4

#782BB4 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.203 H 305.3°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#782BB4
RGBrgb(120, 43, 180)
HSLhsl(274, 61%, 44%)
HSVhsv(274, 76%, 71%)
CMYKcmyk(33.3%, 76.1%, 0%, 29.4%)
CIE-LABlab(36.02, 56.66, -58.21)
CIE-LCHlch(36.02, 81.23, 314.23°)
OKLaboklab(47.4% 0.1173 -0.1657)
OKLCHoklch(47.4% 0.203 305.3)
XYZxyz(16.8460, 9.0162, 44.0240)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BB4 #67B42B
analogous
#342BB4 #782BB4 #B42BAB
triadic
#782BB4 #B4782B #2BB478
tetradic
#782BB4 #B4342B #67B42B #2BABB4
square
#782BB4 #B4342B #67B42B #2BABB4
split-complementary
#782BB4 #ABB42B #2BB434
monochromatic
#361351 #571F83 #782BB4 #9749D3 #B37ADF

Accessibility & contrast

On white

7.49
#782BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#782BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BB4
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BB4#FFFFFF#000000##FFFFFF
##782BB41.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#6D4D6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782bb4;
/* rgb */ color: rgb(120, 43, 180);
/* oklch */ color: oklch(47.4% 0.203 305.3);
Tailwind
colors: {
  custom: {
    50: '#a46dcb',
    500: '#782bb4',
    950: '#000000',
  },
}
SCSS
$custom: #782bb4;
$custom-light: #a46dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#782bb4",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 273.723,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47396,
    "c": 0.20301,
    "h": 305.3
  },
  "luminance": 0.09016
}

Semantic roles & 50–950 ramp

primary
#782BB4
secondary
#98C773
accent
#E5438A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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