#782DC7#782DC7

#782DC7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.220 H 300.3°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#782DC7
RGBrgb(120, 45, 199)
HSLhsl(269, 63%, 48%)
HSVhsv(269, 77%, 78%)
CMYKcmyk(39.7%, 77.4%, 0%, 22%)
CIE-LABlab(37.83, 60.28, -66.42)
CIE-LCHlch(37.83, 89.70, 312.22°)
OKLaboklab(49.15% 0.1109 -0.1898)
OKLCHoklch(49.15% 0.22 300.3)
XYZxyz(18.9903, 9.9932, 54.9501)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DC7 #7CC72D
analogous
#2D2FC7 #782DC7 #C52DC7
triadic
#782DC7 #C7782D #2DC778
tetradic
#782DC7 #C72D2F #7CC72D #2DC7C5
square
#782DC7 #C72D2F #7CC72D #2DC7C5
split-complementary
#782DC7 #C7C52D #2FC72D
monochromatic
#3C1663 #5A2295 #782DC7 #9758D9 #B68AE5

Accessibility & contrast

On white

7.00
#782DC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#782DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #782DC7
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DC7#FFFFFF#000000##FFFFFF
##782DC71.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#665679
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #782dc7;
/* rgb */ color: rgb(120, 45, 199);
/* oklch */ color: oklch(49.1% 0.220 300.3);
Tailwind
colors: {
  custom: {
    50: '#a66fd9',
    500: '#782dc7',
    950: '#000000',
  },
}
SCSS
$custom: #782dc7;
$custom-light: #a66fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#782dc7",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 269.221,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49145,
    "c": 0.21986,
    "h": 300.3
  },
  "luminance": 0.09993
}

Semantic roles & 50–950 ramp

primary
#782DC7
secondary
#A9CE81
accent
#E64296
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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