#782DAB#782DAB

#782DAB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.192 H 307.7°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#782DAB
RGBrgb(120, 45, 171)
HSLhsl(276, 58%, 42%)
HSVhsv(276, 74%, 67%)
CMYKcmyk(29.8%, 73.7%, 0%, 32.9%)
CIE-LABlab(35.62, 53.78, -53.50)
CIE-LCHlch(35.62, 75.86, 315.15°)
OKLaboklab(46.9% 0.1172 -0.1519)
OKLCHoklch(46.9% 0.192 307.7)
XYZxyz(16.0333, 8.8103, 39.3761)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DAB #60AB2D
analogous
#392DAB #782DAB #AB2D9F
triadic
#782DAB #AB782D #2DAB78
tetradic
#782DAB #AB392D #60AB2D #2D9FAB
square
#782DAB #AB392D #60AB2D #2D9FAB
split-complementary
#782DAB #9FAB2D #2DAB39
monochromatic
#34144A #56207B #782DAB #9847CE #B377DB

Accessibility & contrast

On white

7.60
#782DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#782DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DAB
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DAB#FFFFFF#000000##FFFFFF
##782DAB1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#704B6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782dab;
/* rgb */ color: rgb(120, 45, 171);
/* oklch */ color: oklch(46.9% 0.192 307.7);
Tailwind
colors: {
  custom: {
    50: '#a46dc5',
    500: '#782dab',
    950: '#000000',
  },
}
SCSS
$custom: #782dab;
$custom-light: #a46dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#782dab",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 275.714,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46899,
    "c": 0.19183,
    "h": 307.7
  },
  "luminance": 0.0881
}

Semantic roles & 50–950 ramp

primary
#782DAB
secondary
#92C371
accent
#E24685
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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