#782BAE#782BAE

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

Color values

HEX#782BAE
RGBrgb(120, 43, 174)
HSLhsl(275, 60%, 43%)
HSVhsv(275, 75%, 68%)
CMYKcmyk(31%, 75.3%, 0%, 31.8%)
CIE-LABlab(35.55, 55.29, -55.39)
CIE-LCHlch(35.55, 78.27, 314.95°)
OKLaboklab(46.92% 0.1186 -0.1574)
OKLCHoklch(46.92% 0.197 307)
XYZxyz(16.2479, 8.7770, 40.8744)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BAE #61AE2B
analogous
#362BAE #782BAE #AE2BA3
triadic
#782BAE #AE782B #2BAE78
tetradic
#782BAE #AE362B #61AE2B #2BA3AE
square
#782BAE #AE362B #61AE2B #2BA3AE
split-complementary
#782BAE #A3AE2B #2BAE36
monochromatic
#34134C #561F7D #782BAE #9745D1 #B376DD

Accessibility & contrast

On white

7.62
#782BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782BAE
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BAE#FFFFFF#000000##FFFFFF
##782BAE1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#6F4B6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782bae;
/* rgb */ color: rgb(120, 43, 174);
/* oklch */ color: oklch(46.9% 0.197 307.0);
Tailwind
colors: {
  custom: {
    50: '#a46cc7',
    500: '#782bae',
    950: '#000000',
  },
}
SCSS
$custom: #782bae;
$custom-light: #a46cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#782bae",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 275.267,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46924,
    "c": 0.19707,
    "h": 307
  },
  "luminance": 0.08777
}

Semantic roles & 50–950 ramp

primary
#782BAE
secondary
#93C570
accent
#E44486
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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