#782AB8#782AB8

#782AB8 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.208 H 304.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#782AB8
RGBrgb(120, 42, 184)
HSLhsl(273, 63%, 44%)
HSVhsv(273, 77%, 72%)
CMYKcmyk(34.8%, 77.2%, 0%, 27.8%)
CIE-LABlab(36.19, 57.96, -60.28)
CIE-LCHlch(36.19, 83.63, 313.88°)
OKLaboklab(47.62% 0.1172 -0.1718)
OKLCHoklch(47.62% 0.208 304.3)
XYZxyz(17.2234, 9.1098, 46.1891)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AB8 #6AB82A
analogous
#312AB8 #782AB8 #B82AB1
triadic
#782AB8 #B8782A #2AB878
tetradic
#782AB8 #B8312A #6AB82A #2AB1B8
square
#782AB8 #B8312A #6AB82A #2AB1B8
split-complementary
#782AB8 #B1B82A #2AB831
monochromatic
#371354 #581F86 #782AB8 #974AD6 #B37BE1

Accessibility & contrast

On white

7.44
#782AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#782AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AB8
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AB8#FFFFFF#000000##FFFFFF
##782AB81.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782ab8;
/* rgb */ color: rgb(120, 42, 184);
/* oklch */ color: oklch(47.6% 0.208 304.3);
Tailwind
colors: {
  custom: {
    50: '#a56cce',
    500: '#782ab8',
    950: '#000000',
  },
}
SCSS
$custom: #782ab8;
$custom-light: #a56cce;
$custom-dark: #000000;
JSON
{
  "hex": "#782ab8",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 272.958,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47621,
    "c": 0.20797,
    "h": 304.3
  },
  "luminance": 0.0911
}

Semantic roles & 50–950 ramp

primary
#782AB8
secondary
#9BC975
accent
#E6428C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #782AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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