#782DAE#782DAE

#782DAE is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.195 H 306.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#782DAE
RGBrgb(120, 45, 174)
HSLhsl(275, 59%, 43%)
HSVhsv(275, 74%, 68%)
CMYKcmyk(31%, 74.1%, 0%, 31.8%)
CIE-LABlab(35.84, 54.46, -54.92)
CIE-LCHlch(35.84, 77.35, 314.76°)
OKLaboklab(47.13% 0.1167 -0.156)
OKLCHoklch(47.13% 0.195 306.8)
XYZxyz(16.3224, 8.9260, 40.8992)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DAE #63AE2D
analogous
#382DAE #782DAE #AE2DA3
triadic
#782DAE #AE782D #2DAE78
tetradic
#782DAE #AE382D #63AE2D #2DA3AE
square
#782DAE #AE382D #63AE2D #2DA3AE
split-complementary
#782DAE #A3AE2D #2DAE38
monochromatic
#35144D #56207D #782DAE #9748D0 #B379DC

Accessibility & contrast

On white

7.54
#782DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#782DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DAE
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DAE#FFFFFF#000000##FFFFFF
##782DAE1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0055AB
Tritanopia (blue-blind)
#6F4C6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782dae;
/* rgb */ color: rgb(120, 45, 174);
/* oklch */ color: oklch(47.1% 0.195 306.8);
Tailwind
colors: {
  custom: {
    50: '#a46dc7',
    500: '#782dae',
    950: '#000000',
  },
}
SCSS
$custom: #782dae;
$custom-light: #a46dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#782dae",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 174
  },
  "hsl": {
    "h": 274.884,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47129,
    "c": 0.19484,
    "h": 306.8
  },
  "luminance": 0.08926
}

Semantic roles & 50–950 ramp

primary
#782DAE
secondary
#95C472
accent
#E24687
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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