#782DBC#782DBC

#782DBC is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.209 H 303.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#782DBC
RGBrgb(120, 45, 188)
HSLhsl(271, 61%, 46%)
HSVhsv(271, 76%, 74%)
CMYKcmyk(36.2%, 76.1%, 0%, 26.3%)
CIE-LABlab(36.93, 57.69, -61.44)
CIE-LCHlch(36.93, 84.29, 313.20°)
OKLaboklab(48.24% 0.1137 -0.1752)
OKLCHoklch(48.24% 0.209 303)
XYZxyz(17.7591, 9.5007, 48.4654)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DBC #71BC2D
analogous
#312DBC #782DBC #BC2DB8
triadic
#782DBC #BC782D #2DBC78
tetradic
#782DBC #BC312D #71BC2D #2DB8BC
square
#782DBC #BC312D #71BC2D #2DB8BC
split-complementary
#782DBC #B8BC2D #2DBC31
monochromatic
#391559 #58218B #782DBC #9651D5 #B482E1

Accessibility & contrast

On white

7.24
#782DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#782DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DBC
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DBC#FFFFFF#000000##FFFFFF
##782DBC1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#6A5273
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782dbc;
/* rgb */ color: rgb(120, 45, 188);
/* oklch */ color: oklch(48.2% 0.209 303.0);
Tailwind
colors: {
  custom: {
    50: '#a56ed1',
    500: '#782dbc',
    950: '#000000',
  },
}
SCSS
$custom: #782dbc;
$custom-light: #a56ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#782dbc",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 271.469,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48237,
    "c": 0.20887,
    "h": 303
  },
  "luminance": 0.09501
}

Semantic roles & 50–950 ramp

primary
#782DBC
secondary
#A0CA7B
accent
#E44390
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #782DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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