#782EB4#782EB4

#782EB4 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.7% C 0.200 H 305.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#782EB4
RGBrgb(120, 46, 180)
HSLhsl(273, 59%, 44%)
HSVhsv(273, 74%, 71%)
CMYKcmyk(33.3%, 74.4%, 0%, 29.4%)
CIE-LABlab(36.45, 55.42, -57.51)
CIE-LCHlch(36.45, 79.87, 313.94°)
OKLaboklab(47.7% 0.1145 -0.1636)
OKLCHoklch(47.7% 0.2 305)
XYZxyz(16.9591, 9.2424, 44.0617)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EB4 #6AB42E
analogous
#352EB4 #782EB4 #B42EAD
triadic
#782EB4 #B4782E #2EB478
tetradic
#782EB4 #B4352E #6AB42E #2EADB4
square
#782EB4 #B4352E #6AB42E #2EADB4
split-complementary
#782EB4 #ADB42E #2EB435
monochromatic
#371553 #582283 #782EB4 #974ED2 #B37EDE

Accessibility & contrast

On white

7.37
#782EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#782EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EB4
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EB4#FFFFFF#000000##FFFFFF
##782EB41.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#6D4F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782eb4;
/* rgb */ color: rgb(120, 46, 180);
/* oklch */ color: oklch(47.7% 0.200 305.0);
Tailwind
colors: {
  custom: {
    50: '#a46ecb',
    500: '#782eb4',
    950: '#000000',
  },
}
SCSS
$custom: #782eb4;
$custom-light: #a46ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#782eb4",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 273.134,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.477,
    "c": 0.19975,
    "h": 305
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#782EB4
secondary
#9BC777
accent
#E2458C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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