#782AC9#782AC9

#782AC9 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.0% C 0.225 H 300.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#782AC9
RGBrgb(120, 42, 201)
HSLhsl(269, 65%, 48%)
HSVhsv(269, 79%, 79%)
CMYKcmyk(40.3%, 79.1%, 0%, 21.2%)
CIE-LABlab(37.60, 61.90, -67.96)
CIE-LCHlch(37.60, 91.93, 312.33°)
OKLaboklab(49.04% 0.1127 -0.1943)
OKLCHoklch(49.04% 0.225 300.1)
XYZxyz(19.1137, 9.8658, 56.1443)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AC9 #7BC92A
analogous
#2A2BC9 #782AC9 #C72AC9
triadic
#782AC9 #C9782A #2AC978
tetradic
#782AC9 #C92A2B #7BC92A #2AC9C7
square
#782AC9 #C92A2B #7BC92A #2AC9C7
split-complementary
#782AC9 #C9C72A #2BC92A
monochromatic
#3C1564 #5A1F96 #782AC9 #9755DB #B687E6

Accessibility & contrast

On white

7.06
#782AC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#782AC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AC9
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AC9#FFFFFF#000000##FFFFFF
##782AC91.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CD
Deuteranopia (green-blind)
#0057C6
Tritanopia (blue-blind)
#65567A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #782ac9;
/* rgb */ color: rgb(120, 42, 201);
/* oklch */ color: oklch(49.0% 0.225 300.1);
Tailwind
colors: {
  custom: {
    50: '#a66ddb',
    500: '#782ac9',
    950: '#000000',
  },
}
SCSS
$custom: #782ac9;
$custom-light: #a66ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#782ac9",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 201
  },
  "hsl": {
    "h": 269.434,
    "s": 65.432,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49037,
    "c": 0.22464,
    "h": 300.1
  },
  "luminance": 0.09866
}

Semantic roles & 50–950 ramp

primary
#782AC9
secondary
#A8D07F
accent
#E83F95
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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