#782BA8#782BA8

#782BA8 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.191 H 308.8°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#782BA8
RGBrgb(120, 43, 168)
HSLhsl(277, 59%, 41%)
HSVhsv(277, 74%, 66%)
CMYKcmyk(28.6%, 74.4%, 0%, 34.1%)
CIE-LABlab(35.10, 53.94, -52.54)
CIE-LCHlch(35.10, 75.30, 315.76°)
OKLaboklab(46.46% 0.1197 -0.149)
OKLCHoklch(46.46% 0.191 308.8)
XYZxyz(15.6760, 8.5483, 37.8624)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BA8 #5BA82B
analogous
#3A2BA8 #782BA8 #A82B9A
triadic
#782BA8 #A8782B #2BA878
tetradic
#782BA8 #A83A2B #5BA82B #2B9AA8
square
#782BA8 #A83A2B #5BA82B #2B9AA8
split-complementary
#782BA8 #9AA82B #2BA83A
monochromatic
#321247 #551F77 #782BA8 #9842CF #B372DB

Accessibility & contrast

On white

7.75
#782BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#782BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BA8
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BA8#FFFFFF#000000##FFFFFF
##782BA81.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0253A5
Tritanopia (blue-blind)
#714867
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ba8;
/* rgb */ color: rgb(120, 43, 168);
/* oklch */ color: oklch(46.5% 0.191 308.8);
Tailwind
colors: {
  custom: {
    50: '#a46cc3',
    500: '#782ba8',
    950: '#000000',
  },
}
SCSS
$custom: #782ba8;
$custom-light: #a46cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#782ba8",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 276.96,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46463,
    "c": 0.19114,
    "h": 308.8
  },
  "luminance": 0.08548
}

Semantic roles & 50–950 ramp

primary
#782BA8
secondary
#8DC26C
accent
#E24582
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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