#782FC9#782FC9

#782FC9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.220 H 299.6°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#782FC9
RGBrgb(120, 47, 201)
HSLhsl(268, 62%, 49%)
HSVhsv(268, 77%, 79%)
CMYKcmyk(40.3%, 76.6%, 0%, 21.2%)
CIE-LABlab(38.27, 59.95, -66.86)
CIE-LCHlch(38.27, 89.80, 311.88°)
OKLaboklab(49.51% 0.1088 -0.1911)
OKLCHoklch(49.51% 0.22 299.6)
XYZxyz(19.3022, 10.2429, 56.2072)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FC9 #80C92F
analogous
#2F33C9 #782FC9 #C52FC9
triadic
#782FC9 #C9782F #2FC978
tetradic
#782FC9 #C92F33 #80C92F #2FC9C5
square
#782FC9 #C92F33 #80C92F #2FC9C5
split-complementary
#782FC9 #C9C52F #33C92F
monochromatic
#3D1866 #5A2397 #782FC9 #975CD9 #B78EE5

Accessibility & contrast

On white

6.89
#782FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#782FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #782FC9
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FC9#FFFFFF#000000##FFFFFF
##782FC91.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#0059C6
Tritanopia (blue-blind)
#65587B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #782fc9;
/* rgb */ color: rgb(120, 47, 201);
/* oklch */ color: oklch(49.5% 0.220 299.6);
Tailwind
colors: {
  custom: {
    50: '#a670db',
    500: '#782fc9',
    950: '#000000',
  },
}
SCSS
$custom: #782fc9;
$custom-light: #a670db;
$custom-dark: #000000;
JSON
{
  "hex": "#782fc9",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 268.442,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.49508,
    "c": 0.21992,
    "h": 299.6
  },
  "luminance": 0.10243
}

Semantic roles & 50–950 ramp

primary
#782FC9
secondary
#ACCF85
accent
#E54398
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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