#782EA3#782EA3

#782EA3 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.183 H 310.0°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#782EA3
RGBrgb(120, 46, 163)
HSLhsl(278, 56%, 41%)
HSVhsv(278, 72%, 64%)
CMYKcmyk(26.4%, 71.8%, 0%, 36.1%)
CIE-LABlab(35.19, 51.55, -49.39)
CIE-LCHlch(35.19, 71.40, 316.23°)
OKLaboklab(46.41% 0.1175 -0.1398)
OKLCHoklch(46.41% 0.183 310)
XYZxyz(15.3323, 8.5917, 35.4939)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EA3 #59A32E
analogous
#3D2EA3 #782EA3 #A32E93
triadic
#782EA3 #A3782E #2EA378
tetradic
#782EA3 #A33D2E #59A32E #2E93A3
square
#782EA3 #A33D2E #59A32E #2E93A3
split-complementary
#782EA3 #93A32E #2EA33D
monochromatic
#321344 #552173 #782EA3 #9944CA #B374D8

Accessibility & contrast

On white

7.73
#782EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782EA3
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EA3#FFFFFF#000000##FFFFFF
##782EA31.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#1854A0
Tritanopia (blue-blind)
#724865
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ea3;
/* rgb */ color: rgb(120, 46, 163);
/* oklch */ color: oklch(46.4% 0.183 310.0);
Tailwind
colors: {
  custom: {
    50: '#a36dbf',
    500: '#782ea3',
    950: '#000000',
  },
}
SCSS
$custom: #782ea3;
$custom-light: #a36dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#782ea3",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 277.949,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46409,
    "c": 0.1826,
    "h": 310
  },
  "luminance": 0.08591
}

Semantic roles & 50–950 ramp

primary
#782EA3
secondary
#8CBF6D
accent
#DF4980
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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