#782DC8#782DC8

#782DC8 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.2% C 0.221 H 300.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#782DC8
RGBrgb(120, 45, 200)
HSLhsl(269, 63%, 48%)
HSVhsv(269, 78%, 78%)
CMYKcmyk(40%, 77.5%, 0%, 21.6%)
CIE-LABlab(37.91, 60.51, -66.87)
CIE-LCHlch(37.91, 90.18, 312.14°)
OKLaboklab(49.23% 0.1107 -0.1911)
OKLCHoklch(49.23% 0.221 300.1)
XYZxyz(19.1068, 10.0398, 55.5636)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DC8 #7DC82D
analogous
#2D30C8 #782DC8 #C52DC8
triadic
#782DC8 #C8782D #2DC878
tetradic
#782DC8 #C82D30 #7DC82D #2DC8C5
square
#782DC8 #C82D30 #7DC82D #2DC8C5
split-complementary
#782DC8 #C8C52D #30C82D
monochromatic
#3C1764 #5A2296 #782DC8 #9759DA #B68BE5

Accessibility & contrast

On white

6.98
#782DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#782DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #782DC8
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DC8#FFFFFF#000000##FFFFFF
##782DC81.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#65577A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #782dc8;
/* rgb */ color: rgb(120, 45, 200);
/* oklch */ color: oklch(49.2% 0.221 300.1);
Tailwind
colors: {
  custom: {
    50: '#a66fda',
    500: '#782dc8',
    950: '#000000',
  },
}
SCSS
$custom: #782dc8;
$custom-light: #a66fda;
$custom-dark: #000000;
JSON
{
  "hex": "#782dc8",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 269.032,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4923,
    "c": 0.22087,
    "h": 300.1
  },
  "luminance": 0.1004
}

Semantic roles & 50–950 ramp

primary
#782DC8
secondary
#AACF82
accent
#E64197
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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