#782EA2#782EA2

#782EA2 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.182 H 310.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#782EA2
RGBrgb(120, 46, 162)
HSLhsl(278, 56%, 41%)
HSVhsv(278, 72%, 64%)
CMYKcmyk(25.9%, 71.6%, 0%, 36.5%)
CIE-LABlab(35.12, 51.33, -48.91)
CIE-LCHlch(35.12, 70.90, 316.39°)
OKLaboklab(46.34% 0.1176 -0.1384)
OKLCHoklch(46.34% 0.182 310.4)
XYZxyz(15.2430, 8.5560, 35.0239)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EA2 #58A22E
analogous
#3E2EA2 #782EA2 #A22E92
triadic
#782EA2 #A2782E #2EA278
tetradic
#782EA2 #A23E2E #58A22E #2E92A2
square
#782EA2 #A23E2E #58A22E #2E92A2
split-complementary
#782EA2 #92A22E #2EA23E
monochromatic
#311343 #552072 #782EA2 #9943CA #B373D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##782EA2#FFFFFF#000000##FFFFFF
##782EA21.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)
#004FA5
Deuteranopia (green-blind)
#1A549F
Tritanopia (blue-blind)
#724865
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ea2;
/* rgb */ color: rgb(120, 46, 162);
/* oklch */ color: oklch(46.3% 0.182 310.4);
Tailwind
colors: {
  custom: {
    50: '#a36dbe',
    500: '#782ea2',
    950: '#000000',
  },
}
SCSS
$custom: #782ea2;
$custom-light: #a36dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#782ea2",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 278.276,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46336,
    "c": 0.18159,
    "h": 310.4
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

primary
#782EA2
secondary
#8BBF6D
accent
#DF497F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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