#782CB7#782CB7

#782CB7 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.205 H 304.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#782CB7
RGBrgb(120, 44, 183)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 72%)
CMYKcmyk(34.4%, 76%, 0%, 28.2%)
CIE-LABlab(36.39, 56.94, -59.37)
CIE-LCHlch(36.39, 82.26, 313.80°)
OKLaboklab(47.73% 0.1157 -0.1691)
OKLCHoklch(47.73% 0.205 304.4)
XYZxyz(17.1917, 9.2134, 45.6632)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CB7 #6BB72C
analogous
#332CB7 #782CB7 #B72CB0
triadic
#782CB7 #B7782C #2CB778
tetradic
#782CB7 #B7332C #6BB72C #2CB0B7
square
#782CB7 #B7332C #6BB72C #2CB0B7
split-complementary
#782CB7 #B0B72C #2CB733
monochromatic
#371454 #582086 #782CB7 #964CD4 #B37EE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##782CB7#FFFFFF#000000##FFFFFF
##782CB71.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)
#0054BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#6C4F70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782cb7;
/* rgb */ color: rgb(120, 44, 183);
/* oklch */ color: oklch(47.7% 0.205 304.4);
Tailwind
colors: {
  custom: {
    50: '#a56dce',
    500: '#782cb7',
    950: '#000000',
  },
}
SCSS
$custom: #782cb7;
$custom-light: #a56dce;
$custom-dark: #000000;
JSON
{
  "hex": "#782cb7",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 272.806,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47734,
    "c": 0.20492,
    "h": 304.4
  },
  "luminance": 0.09213
}

Semantic roles & 50–950 ramp

primary
#782CB7
secondary
#9CC876
accent
#E4438C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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