#782ACA#782ACA

#782ACA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.1% C 0.226 H 299.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#782ACA
RGBrgb(120, 42, 202)
HSLhsl(269, 66%, 48%)
HSVhsv(269, 79%, 79%)
CMYKcmyk(40.6%, 79.2%, 0%, 20.8%)
CIE-LABlab(37.69, 62.13, -68.41)
CIE-LCHlch(37.69, 92.41, 312.25°)
OKLaboklab(49.12% 0.1124 -0.1956)
OKLCHoklch(49.12% 0.226 299.9)
XYZxyz(19.2317, 9.9130, 56.7659)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782ACA #7CCA2A
analogous
#2A2CCA #782ACA #C82ACA
triadic
#782ACA #CA782A #2ACA78
tetradic
#782ACA #CA2A2C #7CCA2A #2ACAC8
square
#782ACA #CA2A2C #7CCA2A #2ACAC8
split-complementary
#782ACA #CAC82A #2CCA2A
monochromatic
#3C1565 #5A1F97 #782ACA #9755DC #B688E6

Accessibility & contrast

On white

7.04
#782ACA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#782ACA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782ACA
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782ACA#FFFFFF#000000##FFFFFF
##782ACA1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#64567B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #782aca;
/* rgb */ color: rgb(120, 42, 202);
/* oklch */ color: oklch(49.1% 0.226 299.9);
Tailwind
colors: {
  custom: {
    50: '#a76ddb',
    500: '#782aca',
    950: '#000000',
  },
}
SCSS
$custom: #782aca;
$custom-light: #a76ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#782aca",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 202
  },
  "hsl": {
    "h": 269.25,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49123,
    "c": 0.22562,
    "h": 299.9
  },
  "luminance": 0.09913
}

Semantic roles & 50–950 ramp

primary
#782ACA
secondary
#A9D080
accent
#E93F96
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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