#782BC2#782BC2

#782BC2 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.217 H 301.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#782BC2
RGBrgb(120, 43, 194)
HSLhsl(271, 64%, 46%)
HSVhsv(271, 78%, 76%)
CMYKcmyk(38.1%, 77.8%, 0%, 23.9%)
CIE-LABlab(37.14, 59.89, -64.62)
CIE-LCHlch(37.14, 88.10, 312.82°)
OKLaboklab(48.54% 0.1139 -0.1845)
OKLCHoklch(48.54% 0.217 301.7)
XYZxyz(18.3448, 9.6158, 51.9180)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BC2 #75C22B
analogous
#2D2BC2 #782BC2 #C22BC1
triadic
#782BC2 #C2782B #2BC278
tetradic
#782BC2 #C22D2B #75C22B #2BC1C2
square
#782BC2 #C22D2B #75C22B #2BC1C2
split-complementary
#782BC2 #C1C22B #2BC22D
monochromatic
#3A155E #592090 #782BC2 #9652D9 #B584E4

Accessibility & contrast

On white

7.18
#782BC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#782BC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BC2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BC2#FFFFFF#000000##FFFFFF
##782BC21.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#685376
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782bc2;
/* rgb */ color: rgb(120, 43, 194);
/* oklch */ color: oklch(48.5% 0.217 301.7);
Tailwind
colors: {
  custom: {
    50: '#a66dd5',
    500: '#782bc2',
    950: '#000000',
  },
}
SCSS
$custom: #782bc2;
$custom-light: #a66dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#782bc2",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 270.596,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48537,
    "c": 0.21683,
    "h": 301.7
  },
  "luminance": 0.09616
}

Semantic roles & 50–950 ramp

primary
#782BC2
secondary
#A4CD7C
accent
#E74192
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #782BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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