#782EA5#782EA5

#782EA5 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.185 H 309.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#782EA5
RGBrgb(120, 46, 165)
HSLhsl(277, 56%, 41%)
HSVhsv(277, 72%, 65%)
CMYKcmyk(27.3%, 72.1%, 0%, 35.3%)
CIE-LABlab(35.33, 52.00, -50.37)
CIE-LCHlch(35.33, 72.39, 315.91°)
OKLaboklab(46.56% 0.1172 -0.1427)
OKLCHoklch(46.56% 0.185 309.4)
XYZxyz(15.5129, 8.6640, 36.4451)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EA5 #5BA52E
analogous
#3D2EA5 #782EA5 #A52E97
triadic
#782EA5 #A5782E #2EA578
tetradic
#782EA5 #A53D2E #5BA52E #2E97A5
square
#782EA5 #A53D2E #5BA52E #2E97A5
split-complementary
#782EA5 #97A52E #2EA53D
monochromatic
#321345 #552175 #782EA5 #9845CB #B375D8

Accessibility & contrast

On white

7.68
#782EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#782EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EA5
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EA5#FFFFFF#000000##FFFFFF
##782EA51.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1354A2
Tritanopia (blue-blind)
#714966
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ea5;
/* rgb */ color: rgb(120, 46, 165);
/* oklch */ color: oklch(46.6% 0.185 309.4);
Tailwind
colors: {
  custom: {
    50: '#a36dc0',
    500: '#782ea5',
    950: '#000000',
  },
}
SCSS
$custom: #782ea5;
$custom-light: #a36dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#782ea5",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 277.311,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46556,
    "c": 0.18461,
    "h": 309.4
  },
  "luminance": 0.08664
}

Semantic roles & 50–950 ramp

primary
#782EA5
secondary
#8DC06F
accent
#E04881
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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