#782BAA#782BAA

#782BAA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.193 H 308.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#782BAA
RGBrgb(120, 43, 170)
HSLhsl(276, 60%, 42%)
HSVhsv(276, 75%, 67%)
CMYKcmyk(29.4%, 74.7%, 0%, 33.3%)
CIE-LABlab(35.25, 54.39, -53.49)
CIE-LCHlch(35.25, 76.29, 315.48°)
OKLaboklab(46.62% 0.1193 -0.1518)
OKLCHoklch(46.62% 0.193 308.2)
XYZxyz(15.8638, 8.6234, 38.8512)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BAA #5DAA2B
analogous
#392BAA #782BAA #AA2B9D
triadic
#782BAA #AA782B #2BAA78
tetradic
#782BAA #AA392B #5DAA2B #2B9DAA
square
#782BAA #AA392B #5DAA2B #2B9DAA
split-complementary
#782BAA #9DAA2B #2BAA39
monochromatic
#331248 #561F79 #782BAA #9843CF #B374DC

Accessibility & contrast

On white

7.71
#782BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#782BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BAA
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BAA#FFFFFF#000000##FFFFFF
##782BAA1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0054A7
Tritanopia (blue-blind)
#704968
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782baa;
/* rgb */ color: rgb(120, 43, 170);
/* oklch */ color: oklch(46.6% 0.193 308.2);
Tailwind
colors: {
  custom: {
    50: '#a46cc4',
    500: '#782baa',
    950: '#000000',
  },
}
SCSS
$custom: #782baa;
$custom-light: #a46cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#782baa",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 276.378,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46615,
    "c": 0.19311,
    "h": 308.2
  },
  "luminance": 0.08623
}

Semantic roles & 50–950 ramp

primary
#782BAA
secondary
#8FC36E
accent
#E34583
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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