#782BC0#782BC0

#782BC0 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.4% C 0.215 H 302.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#782BC0
RGBrgb(120, 43, 192)
HSLhsl(271, 63%, 46%)
HSVhsv(271, 78%, 75%)
CMYKcmyk(37.5%, 77.6%, 0%, 24.7%)
CIE-LABlab(36.98, 59.42, -63.72)
CIE-LCHlch(36.98, 87.13, 313.00°)
OKLaboklab(48.37% 0.1144 -0.1819)
OKLCHoklch(48.37% 0.215 302.2)
XYZxyz(18.1217, 9.5265, 50.7430)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BC0 #73C02B
analogous
#2E2BC0 #782BC0 #C02BBD
triadic
#782BC0 #C0782B #2BC078
tetradic
#782BC0 #C02E2B #73C02B #2BBDC0
square
#782BC0 #C02E2B #73C02B #2BBDC0
split-complementary
#782BC0 #BDC02B #2BC02E
monochromatic
#39155C #59208E #782BC0 #9650D8 #B482E3

Accessibility & contrast

On white

7.23
#782BC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#782BC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BC0
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BC0#FFFFFF#000000##FFFFFF
##782BC01.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C4
Deuteranopia (green-blind)
#0056BD
Tritanopia (blue-blind)
#685375
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782bc0;
/* rgb */ color: rgb(120, 43, 192);
/* oklch */ color: oklch(48.4% 0.215 302.2);
Tailwind
colors: {
  custom: {
    50: '#a66dd4',
    500: '#782bc0',
    950: '#000000',
  },
}
SCSS
$custom: #782bc0;
$custom-light: #a66dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#782bc0",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 192
  },
  "hsl": {
    "h": 271.007,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48371,
    "c": 0.21486,
    "h": 302.2
  },
  "luminance": 0.09527
}

Semantic roles & 50–950 ramp

primary
#782BC0
secondary
#A2CC7B
accent
#E64191
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #782BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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