#782EB3#782EB3

#782EB3 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.199 H 305.3°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#782EB3
RGBrgb(120, 46, 179)
HSLhsl(273, 59%, 44%)
HSVhsv(273, 74%, 70%)
CMYKcmyk(33%, 74.3%, 0%, 29.8%)
CIE-LABlab(36.37, 55.19, -57.04)
CIE-LCHlch(36.37, 79.37, 314.06°)
OKLaboklab(47.62% 0.1147 -0.1623)
OKLCHoklch(47.62% 0.199 305.3)
XYZxyz(16.8576, 9.2018, 43.5271)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EB3 #69B32E
analogous
#352EB3 #782EB3 #B32EAC
triadic
#782EB3 #B3782E #2EB378
tetradic
#782EB3 #B3352E #69B32E #2EACB3
square
#782EB3 #B3352E #69B32E #2EACB3
split-complementary
#782EB3 #ACB32E #2EB335
monochromatic
#371552 #572182 #782EB3 #974DD1 #B37EDE

Accessibility & contrast

On white

7.39
#782EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#782EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EB3
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EB3#FFFFFF#000000##FFFFFF
##782EB31.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#6D4F6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782eb3;
/* rgb */ color: rgb(120, 46, 179);
/* oklch */ color: oklch(47.6% 0.199 305.3);
Tailwind
colors: {
  custom: {
    50: '#a46ecb',
    500: '#782eb3',
    950: '#000000',
  },
}
SCSS
$custom: #782eb3;
$custom-light: #a46ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#782eb3",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 273.383,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47622,
    "c": 0.19875,
    "h": 305.3
  },
  "luminance": 0.09202
}

Semantic roles & 50–950 ramp

primary
#782EB3
secondary
#9AC676
accent
#E2468B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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